home *** CD-ROM | disk | FTP | other *** search
Emacs Compiled Lisp | 1998-05-21 | 12.8 KB |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Emacs Compiled Lisp
(other/emacsCompiledLisp).
This format is not currently supported by dexvert.
Confidence | Program | Detection | Match Type | Support
|
---|
1%
| dexvert
| Emacs Compiled Lisp (other/emacsCompiledLisp)
| magic
| Unsupported |
100%
| file
| Emacs/XEmacs v20 byte-compiled Lisp data
| default
| |
99%
| file
| data
| default
| |
100%
| TrID
| Emacs/XEmacs byte-compiled Lisp (generic)
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 35 3a 33 36 20 31 | 39 39 38 0a 3b 3b 3b 20 |:55:36 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 75 74 69 6c |s-20.3/l|isp/util|
|000000a0| 73 2f 62 65 6e 63 68 2e | 65 6c 0a 3b 3b 3b 20 65 |s/bench.|el.;;; e|
|000000b0| 6d 61 63 73 20 76 65 72 | 73 69 6f 6e 20 32 30 2e |macs ver|sion 20.|
|000000c0| 34 20 22 45 6d 65 72 61 | 6c 64 22 20 58 45 6d 61 |4 "Emera|ld" XEma|
|000000d0| 63 73 20 20 4c 75 63 69 | 64 2e 0a 3b 3b 3b 20 62 |cs Luci|d..;;; b|
|000000e0| 79 74 65 63 6f 6d 70 20 | 76 65 72 73 69 6f 6e 20 |ytecomp |version |
|000000f0| 32 2e 32 35 20 58 45 6d | 61 63 73 3b 20 32 32 2d |2.25 XEm|acs; 22-|
|00000100| 4d 61 72 2d 39 36 2e 0a | 3b 3b 3b 20 6f 70 74 69 |Mar-96..|;;; opti|
|00000110| 6d 69 7a 61 74 69 6f 6e | 20 69 73 20 6f 6e 2e 0a |mization| is on..|
|00000120| 3b 3b 3b 20 74 68 69 73 | 20 66 69 6c 65 20 75 73 |;;; this| file us|
|00000130| 65 73 20 6f 70 63 6f 64 | 65 73 20 77 68 69 63 68 |es opcod|es which|
|00000140| 20 64 6f 20 6e 6f 74 20 | 65 78 69 73 74 20 69 6e | do not |exist in|
|00000150| 20 45 6d 61 63 73 20 31 | 39 2e 0a 0a 28 69 66 20 | Emacs 1|9...(if |
|00000160| 28 61 6e 64 20 28 62 6f | 75 6e 64 70 20 27 65 6d |(and (bo|undp 'em|
|00000170| 61 63 73 2d 76 65 72 73 | 69 6f 6e 29 0a 09 20 28 |acs-vers|ion).. (|
|00000180| 6f 72 20 28 61 6e 64 20 | 28 62 6f 75 6e 64 70 20 |or (and |(boundp |
|00000190| 27 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 |'epoch::|version)|
|000001a0| 20 65 70 6f 63 68 3a 3a | 76 65 72 73 69 6f 6e 29 | epoch::|version)|
|000001b0| 0a 09 20 20 20 20 20 28 | 73 74 72 69 6e 67 2d 6c |.. (|string-l|
|000001c0| 65 73 73 70 20 65 6d 61 | 63 73 2d 76 65 72 73 69 |essp ema|cs-versi|
|000001d0| 6f 6e 20 22 32 30 22 29 | 29 29 0a 20 20 20 20 28 |on "20")|)). (|
|000001e0| 65 72 72 6f 72 20 22 60 | 62 65 6e 63 68 2e 65 6c |error "`|bench.el|
|000001f0| 27 20 77 61 73 20 63 6f | 6d 70 69 6c 65 64 20 66 |' was co|mpiled f|
|00000200| 6f 72 20 45 6d 61 63 73 | 20 32 30 22 29 29 0a 0a |or Emacs| 20"))..|
|00000210| 28 6f 72 20 28 62 6f 75 | 6e 64 70 20 27 63 75 72 |(or (bou|ndp 'cur|
|00000220| 72 65 6e 74 2d 6c 6f 61 | 64 2d 6c 69 73 74 29 20 |rent-loa|d-list) |
|00000230| 28 73 65 74 71 20 63 75 | 72 72 65 6e 74 2d 6c 6f |(setq cu|rrent-lo|
|00000240| 61 64 2d 6c 69 73 74 20 | 6e 69 6c 29 29 0a 0a 0a |ad-list |nil))...|
|00000250| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 21 88 |(byte-co|de "..!.|
|00000260| c2 c3 21 ac 82 c4 13 c3 | 0d 42 15 c4 87 22 20 5b |..!.....|.B..." [|
|00000270| 72 65 71 75 69 72 65 20 | 63 6c 20 62 6f 75 6e 64 |require |cl bound|
|00000280| 70 20 62 65 6e 63 68 2d | 6d 61 72 6b 2d 68 61 6e |p bench-|mark-han|
|00000290| 6f 69 2d 74 69 6d 65 73 | 20 6e 69 6c 20 63 75 72 |oi-times| nil cur|
|000002a0| 72 65 6e 74 2d 6c 6f 61 | 64 2d 6c 69 73 74 5d 20 |rent-loa|d-list] |
|000002b0| 32 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 62 65 |2).(defa|lias 'be|
|000002c0| 6e 63 68 2d 68 61 6e 64 | 6c 65 72 2d 68 61 6e 6f |nch-hand|ler-hano|
|000002d0| 69 20 23 5b 28 74 69 6d | 65 73 29 20 22 c0 19 5c |i #[(tim|es) "..\|
|000002e0| 6e c3 56 ad 89 c4 20 88 | 5c 6e 53 89 12 aa 73 29 |n.V... .|\nS...s)|
|000002f0| 87 22 20 5b 6e 69 6c 20 | 73 74 61 72 74 2d 74 69 |." [nil |start-ti|
|00000300| 6d 65 20 74 69 6d 65 73 | 20 30 20 62 65 6e 63 68 |me times| 0 bench|
|00000310| 2d 6d 61 72 6b 2d 68 61 | 6e 6f 69 5d 20 33 5d 29 |-mark-ha|noi] 3])|
|00000320| 0a 23 40 34 32 20 48 6f | 77 20 6c 6f 6e 67 20 74 |.#@42 Ho|w long t|
|00000330| 6f 20 63 6f 6d 70 6c 65 | 74 65 20 74 68 65 20 74 |o comple|te the t|
|00000340| 6f 77 65 72 20 6f 66 20 | 68 61 6e 6f 69 2e 1f 0a |ower of |hanoi...|
|00000350| 28 64 65 66 61 6c 69 61 | 73 20 27 62 65 6e 63 68 |(defalia|s 'bench|
|00000360| 2d 6d 61 72 6b 2d 68 61 | 6e 6f 69 20 23 5b 6e 69 |-mark-ha|noi #[ni|
|00000370| 6c 20 22 c0 c1 21 87 22 | 20 5b 68 61 6e 6f 69 20 |l "..!."| [hanoi |
|00000380| 34 5d 20 32 20 28 23 24 | 20 2e 20 38 30 36 29 5d |4] 2 (#$| . 806)]|
|00000390| 29 0a 23 40 33 37 20 62 | 75 66 66 65 72 20 75 73 |).#@37 b|uffer us|
|000003a0| 65 64 20 66 6f 72 20 62 | 65 6e 63 68 2d 6d 61 72 |ed for b|ench-mar|
|000003b0| 6b 2d 66 6f 6e 74 6c 6f | 63 6b 1f 0a 28 64 65 66 |k-fontlo|ck..(def|
|000003c0| 76 61 72 20 62 65 6e 63 | 68 2d 6d 61 72 6b 2d 66 |var benc|h-mark-f|
|000003d0| 6f 6e 74 2d 6c 6f 63 6b | 2d 62 75 66 66 65 72 20 |ont-lock|-buffer |
|000003e0| 6e 69 6c 20 28 23 24 20 | 2e 20 39 31 39 29 29 0a |nil (#$ |. 919)).|
|000003f0| 28 64 65 66 61 6c 69 61 | 73 20 27 62 65 6e 63 68 |(defalia|s 'bench|
|00000400| 2d 68 61 6e 64 6c 65 72 | 2d 66 6f 6e 74 2d 6c 6f |-handler|-font-lo|
|00000410| 63 6b 20 23 5b 28 74 69 | 6d 65 73 29 20 22 c0 09 |ck #[(ti|mes) "..|
|00000420| 21 12 0b c4 56 ab 8c c5 | 20 88 c6 20 88 0b 53 89 |!...V...| .. ..S.|
|00000430| 13 aa 70 c7 5c 6e 21 87 | 22 20 5b 66 69 6e 64 2d |..p.\n!.|" [find-|
|00000440| 66 69 6c 65 20 62 65 6e | 63 68 2d 6c 69 73 70 2d |file ben|ch-lisp-|
|00000450| 66 69 6c 65 20 62 65 6e | 63 68 2d 6d 61 72 6b 2d |file ben|ch-mark-|
|00000460| 66 6f 6e 74 2d 6c 6f 63 | 6b 2d 62 75 66 66 65 72 |font-loc|k-buffer|
|00000470| 20 74 69 6d 65 73 20 30 | 20 62 65 6e 63 68 2d 6d | times 0| bench-m|
|00000480| 61 72 6b 2d 66 6f 6e 74 | 2d 6c 6f 63 6b 20 66 6f |ark-font|-lock fo|
|00000490| 6e 74 2d 6c 6f 63 6b 2d | 6d 6f 64 65 20 6b 69 6c |nt-lock-|mode kil|
|000004a0| 6c 2d 62 75 66 66 65 72 | 5d 20 33 5d 29 0a 23 40 |l-buffer|] 3]).#@|
|000004b0| 33 35 20 48 6f 77 20 6c | 6f 6e 67 20 74 6f 20 66 |35 How l|ong to f|
|000004c0| 6f 6e 69 74 66 79 20 61 | 20 6c 61 72 67 65 20 66 |onitfy a| large f|
|000004d0| 69 6c 65 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |ile...(d|efalias |
|000004e0| 27 62 65 6e 63 68 2d 6d | 61 72 6b 2d 66 6f 6e 74 |'bench-m|ark-font|
|000004f0| 2d 6c 6f 63 6b 20 23 5b | 6e 69 6c 20 22 c0 20 87 |-lock #[|nil ". .|
|00000500| 22 20 5b 66 6f 6e 74 2d | 6c 6f 63 6b 2d 66 6f 6e |" [font-|lock-fon|
|00000510| 74 69 66 79 2d 62 75 66 | 66 65 72 5d 20 31 20 28 |tify-buf|fer] 1 (|
|00000520| 23 24 20 2e 20 31 32 30 | 33 29 5d 29 0a 23 40 33 |#$ . 120|3)]).#@3|
|00000530| 38 20 62 75 66 66 65 72 | 20 75 73 65 64 20 66 6f |8 buffer| used fo|
|00000540| 72 20 62 65 6e 63 68 2d | 6d 61 72 6b 2d 73 63 72 |r bench-|mark-scr|
|00000550| 6f 6c 6c 69 6e 67 1f 0a | 28 64 65 66 76 61 72 20 |olling..|(defvar |
|00000560| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 73 63 72 6f 6c |bench-ma|rk-scrol|
|00000570| 6c 69 6e 67 2d 62 75 66 | 66 65 72 20 6e 69 6c 20 |ling-buf|fer nil |
|00000580| 28 23 24 20 2e 20 31 33 | 33 30 29 29 0a 28 64 65 |(#$ . 13|30)).(de|
|00000590| 66 61 6c 69 61 73 20 27 | 62 65 6e 63 68 2d 68 61 |falias '|bench-ha|
|000005a0| 6e 64 6c 65 72 2d 73 63 | 72 6f 6c 6c 69 6e 67 20 |ndler-sc|rolling |
|000005b0| 23 5b 28 74 69 6d 65 73 | 29 20 22 c0 09 21 89 12 |#[(times|) "..!..|
|000005c0| 71 88 c3 c4 21 88 65 62 | 88 0d 89 1e 06 c7 56 ab |q...!.eb|......V.|
|000005d0| 8e c8 20 88 c9 20 88 0e | 06 53 89 16 06 aa 6e 29 |.. .. ..|.S....n)|
|000005e0| ca 20 88 65 62 88 0d 89 | 1e 06 c7 56 ab 8e cb 20 |. .eb...|...V... |
|000005f0| 88 cc 20 88 0e 06 53 89 | 16 06 aa 6e 29 cd 5c 6e |.. ...S.|...n).\n|
|00000600| 21 87 22 20 5b 66 69 6e | 64 2d 66 69 6c 65 20 62 |!." [fin|d-file b|
|00000610| 65 6e 63 68 2d 6c 69 73 | 70 2d 66 69 6c 65 20 62 |ench-lis|p-file b|
|00000620| 65 6e 63 68 2d 6d 61 72 | 6b 2d 73 63 72 6f 6c 6c |ench-mar|k-scroll|
|00000630| 69 6e 67 2d 62 75 66 66 | 65 72 20 66 6f 6e 74 2d |ing-buff|er font-|
|00000640| 6c 6f 63 6b 2d 6d 6f 64 | 65 20 2d 31 20 74 69 6d |lock-mod|e -1 tim|
|00000650| 65 73 20 74 65 6d 70 2d | 74 69 6d 65 73 20 30 20 |es temp-|times 0 |
|00000660| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 73 63 72 6f 6c |bench-ma|rk-scrol|
|00000670| 6c 69 6e 67 2d 64 6f 77 | 6e 20 62 65 6e 63 68 2d |ling-dow|n bench-|
|00000680| 6d 61 72 6b 2d 73 63 72 | 6f 6c 6c 69 6e 67 2d 75 |mark-scr|olling-u|
|00000690| 70 20 66 6f 6e 74 2d 6c | 6f 63 6b 2d 66 6f 6e 74 |p font-l|ock-font|
|000006a0| 69 66 79 2d 62 75 66 66 | 65 72 20 62 65 6e 63 68 |ify-buff|er bench|
|000006b0| 2d 6d 61 72 6b 2d 73 63 | 72 6f 6c 6c 69 6e 67 2d |-mark-sc|rolling-|
|000006c0| 64 6f 77 6e 2d 66 6f 6e | 74 69 66 69 65 64 20 62 |down-fon|tified b|
|000006d0| 65 6e 63 68 2d 6d 61 72 | 6b 2d 73 63 72 6f 6c 6c |ench-mar|k-scroll|
|000006e0| 69 6e 67 2d 75 70 2d 66 | 6f 6e 74 69 66 69 65 64 |ing-up-f|ontified|
|000006f0| 20 6b 69 6c 6c 2d 62 75 | 66 66 65 72 5d 20 33 5d | kill-bu|ffer] 3]|
|00000700| 29 0a 23 40 39 32 20 48 | 6f 77 20 6c 6f 6e 67 20 |).#@92 H|ow long |
|00000710| 64 6f 65 73 20 69 74 20 | 74 61 6b 65 20 74 6f 20 |does it |take to |
|00000720| 73 63 72 6f 6c 6c 20 64 | 6f 77 6e 20 74 68 72 6f |scroll d|own thro|
|00000730| 75 67 68 20 61 20 6c 61 | 72 67 65 20 66 69 6c 65 |ugh a la|rge file|
|00000740| 2e 0a 45 78 70 65 63 74 | 20 70 6f 69 6e 74 20 74 |..Expect| point t|
|00000750| 6f 20 62 65 20 61 74 20 | 70 6f 69 6e 74 20 6d 69 |o be at |point mi|
|00000760| 6e 1f 0a 28 64 65 66 61 | 6c 69 61 73 20 27 62 65 |n..(defa|lias 'be|
|00000770| 6e 63 68 2d 6d 61 72 6b | 2d 73 63 72 6f 6c 6c 69 |nch-mark|-scrolli|
|00000780| 6e 67 2d 64 6f 77 6e 20 | 23 5b 6e 69 6c 20 22 c0 |ng-down |#[nil ".|
|00000790| 19 60 64 57 ad 8a c2 c3 | 21 88 c4 c5 21 88 aa 71 |.`dW....|!...!..q|
|000007a0| 29 87 22 20 5b 74 20 62 | 75 66 66 65 72 2d 72 65 |)." [t b|uffer-re|
|000007b0| 61 64 2d 6f 6e 6c 79 20 | 6e 65 78 74 2d 6c 69 6e |ad-only |next-lin|
|000007c0| 65 20 31 20 73 69 74 2d | 66 6f 72 20 30 5d 20 32 |e 1 sit-|for 0] 2|
|000007d0| 20 28 23 24 20 2e 20 31 | 37 39 39 29 5d 29 0a 23 | (#$ . 1|799)]).#|
|000007e0| 40 36 37 20 48 6f 77 20 | 6c 6f 6e 67 20 64 6f 65 |@67 How |long doe|
|000007f0| 73 20 69 74 20 74 61 6b | 65 20 74 6f 20 73 63 72 |s it tak|e to scr|
|00000800| 6f 6c 6c 20 75 70 20 74 | 68 72 6f 75 67 68 20 61 |oll up t|hrough a|
|00000810| 20 6c 61 72 67 65 20 66 | 6f 6e 74 69 66 69 65 64 | large f|ontified|
|00000820| 20 69 6c 65 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 | ile...(|defalias|
|00000830| 20 27 62 65 6e 63 68 2d | 6d 61 72 6b 2d 73 63 72 | 'bench-|mark-scr|
|00000840| 6f 6c 6c 69 6e 67 2d 75 | 70 20 23 5b 6e 69 6c 20 |olling-u|p #[nil |
|00000850| 22 c0 19 60 65 56 ad 8a | c2 c3 21 88 c4 c5 21 88 |"..`eV..|..!...!.|
|00000860| aa 71 29 87 22 20 5b 74 | 20 62 75 66 66 65 72 2d |.q)." [t| buffer-|
|00000870| 72 65 61 64 2d 6f 6e 6c | 79 20 70 72 65 76 69 6f |read-onl|y previo|
|00000880| 75 73 2d 6c 69 6e 65 20 | 31 20 73 69 74 2d 66 6f |us-line |1 sit-fo|
|00000890| 72 20 30 5d 20 32 20 28 | 23 24 20 2e 20 32 30 32 |r 0] 2 (|#$ . 202|
|000008a0| 30 29 5d 29 0a 23 40 37 | 30 20 48 6f 77 20 6c 6f |0)]).#@7|0 How lo|
|000008b0| 6e 67 20 64 6f 65 73 20 | 69 74 20 74 61 6b 65 20 |ng does |it take |
|000008c0| 74 6f 20 73 63 72 6f 6c | 6c 20 64 6f 77 6e 20 74 |to scrol|l down t|
|000008d0| 68 72 6f 75 67 68 20 61 | 20 6c 61 72 67 65 20 66 |hrough a| large f|
|000008e0| 6f 6e 74 69 66 69 65 64 | 20 66 69 6c 65 2e 1f 0a |ontified| file...|
|000008f0| 28 64 65 66 61 6c 69 61 | 73 20 27 62 65 6e 63 68 |(defalia|s 'bench|
|00000900| 2d 6d 61 72 6b 2d 73 63 | 72 6f 6c 6c 69 6e 67 2d |-mark-sc|rolling-|
|00000910| 64 6f 77 6e 2d 66 6f 6e | 74 69 66 69 65 64 20 23 |down-fon|tified #|
|00000920| 5b 6e 69 6c 20 22 c0 19 | 65 62 88 60 64 57 ad 8a |[nil "..|eb.`dW..|
|00000930| c2 c3 21 88 c4 c5 21 88 | aa 71 29 87 22 20 5b 74 |..!...!.|.q)." [t|
|00000940| 20 62 75 66 66 65 72 2d | 72 65 61 64 2d 6f 6e 6c | buffer-|read-onl|
|00000950| 79 20 6e 65 78 74 2d 6c | 69 6e 65 20 31 20 73 69 |y next-l|ine 1 si|
|00000960| 74 2d 66 6f 72 20 30 5d | 20 32 20 28 23 24 20 2e |t-for 0]| 2 (#$ .|
|00000970| 20 32 32 31 38 29 5d 29 | 0a 23 40 36 37 20 48 6f | 2218)])|.#@67 Ho|
|00000980| 77 20 6c 6f 6e 67 20 64 | 6f 65 73 20 69 74 20 74 |w long d|oes it t|
|00000990| 61 6b 65 20 74 6f 20 73 | 63 72 6f 6c 6c 20 75 70 |ake to s|croll up|
|000009a0| 20 74 68 72 6f 75 67 68 | 20 61 20 6c 61 72 67 65 | through| a large|
|000009b0| 20 66 6f 6e 74 69 66 69 | 65 64 20 69 6c 65 2e 1f | fontifi|ed ile..|
|000009c0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 62 65 6e 63 |.(defali|as 'benc|
|000009d0| 68 2d 6d 61 72 6b 2d 73 | 63 72 6f 6c 6c 69 6e 67 |h-mark-s|crolling|
|000009e0| 2d 75 70 2d 66 6f 6e 74 | 69 66 69 65 64 20 23 5b |-up-font|ified #[|
|000009f0| 6e 69 6c 20 22 c0 19 60 | 65 56 ad 8a c2 c3 21 88 |nil "..`|eV....!.|
|00000a00| c4 c5 21 88 aa 71 29 87 | 22 20 5b 74 20 62 75 66 |..!..q).|" [t buf|
|00000a10| 66 65 72 2d 72 65 61 64 | 2d 6f 6e 6c 79 20 70 72 |fer-read|-only pr|
|00000a20| 65 76 69 6f 75 73 2d 6c | 69 6e 65 20 31 20 73 69 |evious-l|ine 1 si|
|00000a30| 74 2d 66 6f 72 20 30 5d | 20 32 20 28 23 24 20 2e |t-for 0]| 2 (#$ .|
|00000a40| 20 32 34 33 30 29 5d 29 | 0a 28 64 65 66 61 6c 69 | 2430)])|.(defali|
|00000a50| 61 73 20 27 62 65 6e 63 | 68 2d 68 61 6e 64 6c 65 |as 'benc|h-handle|
|00000a60| 72 2d 6d 61 6b 65 2d 66 | 72 61 6d 65 73 20 23 5b |r-make-f|rames #[|
|00000a70| 28 74 69 6d 65 73 29 20 | 22 08 c1 1a 89 1b c4 56 |(times) |"......V|
|00000a80| ab 8d c5 20 12 c6 5c 6e | 21 88 0b 53 89 13 aa 6f |... ..\n|!..S...o|
|00000a90| 2a 08 c1 1e 07 89 1b c4 | 56 ab 8d c8 20 0e 07 42 |*.......|V... ..B|
|00000aa0| 16 07 0b 53 89 13 aa 6f | 08 89 13 c4 56 ad 91 c9 |...S...o|....V...|
|00000ab0| 0e 07 40 21 88 0e 07 41 | 16 07 0b 53 89 13 aa 6b |..@!...A|...S...k|
|00000ac0| 2a 87 22 20 5b 74 69 6d | 65 73 20 6e 69 6c 20 66 |*." [tim|es nil f|
|00000ad0| 72 61 6d 65 20 74 65 6d | 70 2d 74 69 6d 65 73 20 |rame tem|p-times |
|00000ae0| 30 20 62 65 6e 63 68 2d | 6d 61 72 6b 2d 6d 61 6b |0 bench-|mark-mak|
|00000af0| 65 2d 66 72 61 6d 65 20 | 62 65 6e 63 68 2d 6d 61 |e-frame |bench-ma|
|00000b00| 72 6b 2d 64 65 6c 65 74 | 65 2d 66 72 61 6d 65 20 |rk-delet|e-frame |
|00000b10| 66 72 61 6d 65 73 20 62 | 65 6e 63 68 2d 6d 61 72 |frames b|ench-mar|
|00000b20| 6b 2d 6d 61 6b 65 2d 6d | 75 6c 74 69 70 6c 65 2d |k-make-m|ultiple-|
|00000b30| 66 72 61 6d 65 73 20 62 | 65 6e 63 68 2d 6d 61 72 |frames b|ench-mar|
|00000b40| 6b 2d 64 65 6c 65 74 65 | 2d 6d 75 6c 74 69 70 6c |k-delete|-multipl|
|00000b50| 65 2d 66 72 61 6d 65 73 | 5d 20 33 5d 29 0a 23 40 |e-frames|] 3]).#@|
|00000b60| 34 33 20 48 6f 77 20 71 | 75 69 63 6b 6c 79 20 63 |43 How q|uickly c|
|00000b70| 61 6e 20 65 6d 61 63 73 | 20 63 72 65 61 74 65 20 |an emacs| create |
|00000b80| 61 20 6e 65 77 20 66 72 | 61 6d 65 2e 1f 0a 28 64 |a new fr|ame...(d|
|00000b90| 65 66 61 6c 69 61 73 20 | 27 62 65 6e 63 68 2d 6d |efalias |'bench-m|
|00000ba0| 61 72 6b 2d 6d 61 6b 65 | 2d 66 72 61 6d 65 20 23 |ark-make|-frame #|
|00000bb0| 5b 6e 69 6c 20 22 c0 20 | 87 22 20 5b 6d 61 6b 65 |[nil ". |." [make|
|00000bc0| 2d 66 72 61 6d 65 5d 20 | 31 20 28 23 24 20 2e 20 |-frame] |1 (#$ . |
|00000bd0| 32 39 31 35 29 5d 29 0a | 23 40 34 33 20 48 6f 77 |2915)]).|#@43 How|
|00000be0| 20 71 75 69 63 6b 6c 79 | 20 63 61 6e 20 65 6d 61 | quickly| can ema|
|00000bf0| 63 73 20 63 72 65 61 74 | 65 20 61 20 6e 65 77 20 |cs creat|e a new |
|00000c00| 66 72 61 6d 65 2e 1f 0a | 28 64 65 66 61 6c 69 61 |frame...|(defalia|
|00000c10| 73 20 27 62 65 6e 63 68 | 2d 6d 61 72 6b 2d 64 65 |s 'bench|-mark-de|
|00000c20| 6c 65 74 65 2d 66 72 61 | 6d 65 20 23 5b 28 66 72 |lete-fra|me #[(fr|
|00000c30| 61 6d 65 29 20 22 c0 09 | 21 87 22 20 5b 64 65 6c |ame) "..|!." [del|
|00000c40| 65 74 65 2d 66 72 61 6d | 65 20 66 72 61 6d 65 5d |ete-fram|e frame]|
|00000c50| 20 32 20 28 23 24 20 2e | 20 33 30 33 37 29 5d 29 | 2 (#$ .| 3037)])|
|00000c60| 0a 23 40 34 33 20 48 6f | 77 20 71 75 69 63 6b 6c |.#@43 Ho|w quickl|
|00000c70| 79 20 63 61 6e 20 65 6d | 61 63 73 20 63 72 65 61 |y can em|acs crea|
|00000c80| 74 65 20 61 20 6e 65 77 | 20 66 72 61 6d 65 2e 1f |te a new| frame..|
|00000c90| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 62 65 6e 63 |.(defali|as 'benc|
|00000ca0| 68 2d 6d 61 72 6b 2d 6d | 61 6b 65 2d 6d 75 6c 74 |h-mark-m|ake-mult|
|00000cb0| 69 70 6c 65 2d 66 72 61 | 6d 65 73 20 23 5b 6e 69 |iple-fra|mes #[ni|
|00000cc0| 6c 20 22 c0 20 87 22 20 | 5b 6d 61 6b 65 2d 66 72 |l ". ." |[make-fr|
|00000cd0| 61 6d 65 5d 20 31 20 28 | 23 24 20 2e 20 33 31 37 |ame] 1 (|#$ . 317|
|00000ce0| 34 29 5d 29 0a 23 40 34 | 33 20 48 6f 77 20 71 75 |4)]).#@4|3 How qu|
|00000cf0| 69 63 6b 6c 79 20 63 61 | 6e 20 65 6d 61 63 73 20 |ickly ca|n emacs |
|00000d00| 63 72 65 61 74 65 20 61 | 20 6e 65 77 20 66 72 61 |create a| new fra|
|00000d10| 6d 65 2e 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |me...(de|falias '|
|00000d20| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 64 65 6c 65 74 |bench-ma|rk-delet|
|00000d30| 65 2d 6d 75 6c 74 69 70 | 6c 65 2d 66 72 61 6d 65 |e-multip|le-frame|
|00000d40| 73 20 23 5b 28 66 72 61 | 6d 65 29 20 22 c0 09 21 |s #[(fra|me) "..!|
|00000d50| 87 22 20 5b 64 65 6c 65 | 74 65 2d 66 72 61 6d 65 |." [dele|te-frame|
|00000d60| 20 66 72 61 6d 65 5d 20 | 32 20 28 23 24 20 2e 20 | frame] |2 (#$ . |
|00000d70| 33 33 30 36 29 5d 29 0a | 28 62 79 74 65 2d 63 6f |3306)]).|(byte-co|
|00000d80| 64 65 20 22 c0 11 c1 5c | 6e 42 12 c3 14 c4 5c 6e |de "...\|nB....\n|
|00000d90| 42 12 c5 16 06 c6 5c 6e | 42 12 c0 87 22 20 5b 6e |B.....\n|B..." [n|
|00000da0| 69 6c 20 62 65 6e 63 68 | 2d 6d 61 72 6b 2d 6d 61 |il bench|-mark-ma|
|00000db0| 6b 65 2d 77 6f 72 64 73 | 2d 62 75 66 66 65 72 20 |ke-words|-buffer |
|00000dc0| 63 75 72 72 65 6e 74 2d | 6c 6f 61 64 2d 6c 69 73 |current-|load-lis|
|00000dd0| 74 20 22 2a 62 65 6e 63 | 68 2d 6d 61 72 6b 2d 6d |t "*benc|h-mark-m|
|00000de0| 61 6b 65 2d 77 6f 72 64 | 73 2a 22 20 62 65 6e 63 |ake-word|s*" benc|
|00000df0| 68 2d 6d 61 72 6b 2d 6d | 61 6b 65 2d 77 6f 72 64 |h-mark-m|ake-word|
|00000e00| 73 2d 62 75 66 66 65 72 | 2d 6e 61 6d 65 20 31 30 |s-buffer|-name 10|
|00000e10| 30 30 30 20 62 65 6e 63 | 68 2d 6d 61 72 6b 2d 6d |000 benc|h-mark-m|
|00000e20| 61 6b 65 2d 77 6f 72 64 | 73 2d 6e 75 6d 62 65 72 |ake-word|s-number|
|00000e30| 2d 6f 66 2d 77 6f 72 64 | 73 5d 20 32 29 0a 28 64 |-of-word|s] 2).(d|
|00000e40| 65 66 61 6c 69 61 73 20 | 27 62 65 6e 63 68 2d 68 |efalias |'bench-h|
|00000e50| 61 6e 64 6c 65 72 2d 6d | 61 6b 65 2d 77 6f 72 64 |andler-m|ake-word|
|00000e60| 73 20 23 5b 28 74 69 6d | 65 73 29 20 22 c0 09 21 |s #[(tim|es) "..!|
|00000e70| 89 12 71 88 0b c4 56 ab | 8c c5 20 88 c6 20 88 0b |..q...V.|.. .. ..|
|00000e80| 53 89 13 aa 70 c7 5c 6e | 21 87 22 20 5b 67 65 74 |S...p.\n|!." [get|
|00000e90| 2d 62 75 66 66 65 72 2d | 63 72 65 61 74 65 20 62 |-buffer-|create b|
|00000ea0| 65 6e 63 68 2d 6d 61 72 | 6b 2d 6d 61 6b 65 2d 77 |ench-mar|k-make-w|
|00000eb0| 6f 72 64 73 2d 62 75 66 | 66 65 72 2d 6e 61 6d 65 |ords-buf|fer-name|
|00000ec0| 20 62 65 6e 63 68 2d 6d | 61 72 6b 2d 6d 61 6b 65 | bench-m|ark-make|
|00000ed0| 2d 77 6f 72 64 73 2d 62 | 75 66 66 65 72 20 74 69 |-words-b|uffer ti|
|00000ee0| 6d 65 73 20 30 20 62 65 | 6e 63 68 2d 6d 61 72 6b |mes 0 be|nch-mark|
|00000ef0| 2d 6d 61 6b 65 2d 77 6f | 72 64 73 20 65 72 61 73 |-make-wo|rds eras|
|00000f00| 65 2d 62 75 66 66 65 72 | 20 6b 69 6c 6c 2d 62 75 |e-buffer| kill-bu|
|00000f10| 66 66 65 72 5d 20 33 5d | 29 0a 23 40 35 37 20 48 |ffer] 3]|).#@57 H|
|00000f20| 6f 77 20 6c 6f 6e 67 20 | 64 6f 65 73 20 69 74 20 |ow long |does it |
|00000f30| 74 61 6b 65 20 74 6f 20 | 67 65 6e 65 72 61 74 65 |take to |generate|
|00000f40| 20 6c 6f 74 73 20 6f 66 | 20 72 61 6e 64 6f 6d 20 | lots of| random |
|00000f50| 77 6f 72 64 73 2e 1f 0a | 28 64 65 66 61 6c 69 61 |words...|(defalia|
|00000f60| 73 20 27 62 65 6e 63 68 | 2d 6d 61 72 6b 2d 6d 61 |s 'bench|-mark-ma|
|00000f70| 6b 65 2d 77 6f 72 64 73 | 20 23 5b 6e 69 6c 20 22 |ke-words| #[nil "|
|00000f80| 08 89 19 c2 55 3f ad a0 | c3 c4 21 89 1d c2 55 ac |....U?..|..!...U.|
|00000f90| 8d c6 c3 c7 21 5c 5c 63 | 88 0d 53 89 15 aa 6f 29 |....!\\c|..S...o)|
|00000fa0| c8 63 88 09 53 89 11 aa | 5b 29 87 22 20 5b 62 65 |.c..S...|[)." [be|
|00000fb0| 6e 63 68 2d 6d 61 72 6b | 2d 6d 61 6b 65 2d 77 6f |nch-mark|-make-wo|
|00000fc0| 72 64 73 2d 6e 75 6d 62 | 65 72 2d 6f 66 2d 77 6f |rds-numb|er-of-wo|
|00000fd0| 72 64 73 20 74 6d 70 2d | 77 6f 72 64 73 20 30 20 |rds tmp-|words 0 |
|00000fe0| 72 61 6e 64 6f 6d 20 31 | 30 20 77 6f 72 64 2d 6c |random 1|0 word-l|
|00000ff0| 65 6e 20 3f 61 20 32 35 | 20 22 5c 6e 22 5d 20 34 |en ?a 25| "\n"] 4|
|00001000| 20 28 23 24 20 2e 20 33 | 38 37 31 29 5d 29 0a 28 | (#$ . 3|871)]).(|
|00001010| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 11 c1 5c 6e |byte-cod|e "...\n|
|00001020| 42 12 c3 14 c4 5c 6e 42 | 12 c5 16 06 c6 5c 6e 42 |B....\nB|.....\nB|
|00001030| 12 c3 87 22 20 5b 22 2a | 62 65 6e 63 68 2d 6d 61 |..." ["*|bench-ma|
|00001040| 72 6b 2d 73 6f 72 74 2d | 77 6f 72 64 73 2a 22 20 |rk-sort-|words*" |
|00001050| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 73 6f 72 74 2d |bench-ma|rk-sort-|
|00001060| 77 6f 72 64 73 2d 62 75 | 66 66 65 72 2d 6e 61 6d |words-bu|ffer-nam|
|00001070| 65 20 63 75 72 72 65 6e | 74 2d 6c 6f 61 64 2d 6c |e curren|t-load-l|
|00001080| 69 73 74 20 6e 69 6c 20 | 62 65 6e 63 68 2d 6d 61 |ist nil |bench-ma|
|00001090| 72 6b 2d 73 6f 72 74 2d | 77 6f 72 64 73 2d 62 75 |rk-sort-|words-bu|
|000010a0| 66 66 65 72 20 31 30 30 | 30 30 20 62 65 6e 63 68 |ffer 100|00 bench|
|000010b0| 2d 6d 61 72 6b 2d 73 6f | 72 74 2d 77 6f 72 64 73 |-mark-so|rt-words|
|000010c0| 2d 6e 75 6d 62 65 72 2d | 77 6f 72 64 73 5d 20 32 |-number-|words] 2|
|000010d0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 62 65 6e |).(defal|ias 'ben|
|000010e0| 63 68 2d 68 61 6e 64 6c | 65 72 2d 73 6f 72 74 2d |ch-handl|er-sort-|
|000010f0| 77 6f 72 64 73 20 23 5b | 28 74 69 6d 65 73 29 20 |words #[|(times) |
|00001100| 22 c0 09 21 12 c3 5c 6e | 21 88 0c c5 56 ab 8f c6 |"..!..\n|!...V...|
|00001110| 20 88 c7 20 88 c8 20 88 | 0c 53 89 14 aa 6d c9 5c | .. .. .|.S...m.\|
|00001120| 6e 21 87 22 20 5b 67 65 | 74 2d 62 75 66 66 65 72 |n!." [ge|t-buffer|
|00001130| 2d 63 72 65 61 74 65 20 | 62 65 6e 63 68 2d 6d 61 |-create |bench-ma|
|00001140| 72 6b 2d 73 6f 72 74 2d | 77 6f 72 64 73 2d 62 75 |rk-sort-|words-bu|
|00001150| 66 66 65 72 2d 6e 61 6d | 65 20 62 65 6e 63 68 2d |ffer-nam|e bench-|
|00001160| 6d 61 72 6b 2d 73 6f 72 | 74 2d 77 6f 72 64 73 2d |mark-sor|t-words-|
|00001170| 62 75 66 66 65 72 20 73 | 77 69 74 63 68 2d 74 6f |buffer s|witch-to|
|00001180| 2d 62 75 66 66 65 72 20 | 74 69 6d 65 73 20 30 20 |-buffer |times 0 |
|00001190| 62 65 6e 63 68 2d 70 72 | 65 2d 73 6f 72 74 2d 77 |bench-pr|e-sort-w|
|000011a0| 6f 72 64 73 20 62 65 6e | 63 68 2d 6d 61 72 6b 2d |ords ben|ch-mark-|
|000011b0| 73 6f 72 74 2d 77 6f 72 | 64 73 20 65 72 61 73 65 |sort-wor|ds erase|
|000011c0| 2d 62 75 66 66 65 72 20 | 6b 69 6c 6c 2d 62 75 66 |-buffer |kill-buf|
|000011d0| 66 65 72 5d 20 33 5d 29 | 0a 23 40 35 37 20 48 6f |fer] 3])|.#@57 Ho|
|000011e0| 77 20 6c 6f 6e 67 20 64 | 6f 65 73 20 69 74 20 74 |w long d|oes it t|
|000011f0| 61 6b 65 20 74 6f 20 67 | 65 6e 65 72 61 74 65 20 |ake to g|enerate |
|00001200| 6c 6f 74 73 20 6f 66 20 | 72 61 6e 64 6f 6d 20 77 |lots of |random w|
|00001210| 6f 72 64 73 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |ords...(|defalias|
|00001220| 20 27 62 65 6e 63 68 2d | 70 72 65 2d 73 6f 72 74 | 'bench-|pre-sort|
|00001230| 2d 77 6f 72 64 73 20 23 | 5b 6e 69 6c 20 22 08 89 |-words #|[nil "..|
|00001240| 19 c2 55 3f ad a0 c3 c4 | 21 89 1d c2 55 ac 8d c6 |..U?....|!...U...|
|00001250| c3 c7 21 5c 5c 63 88 0d | 53 89 15 aa 6f 29 c8 63 |..!\\c..|S...o).c|
|00001260| 88 09 53 89 11 aa 5b 29 | 87 22 20 5b 62 65 6e 63 |..S...[)|." [benc|
|00001270| 68 2d 6d 61 72 6b 2d 73 | 6f 72 74 2d 77 6f 72 64 |h-mark-s|ort-word|
|00001280| 73 2d 6e 75 6d 62 65 72 | 2d 77 6f 72 64 73 20 74 |s-number|-words t|
|00001290| 6d 70 2d 77 6f 72 64 73 | 20 30 20 72 61 6e 64 6f |mp-words| 0 rando|
|000012a0| 6d 20 31 30 20 77 6f 72 | 64 2d 6c 65 6e 20 3f 61 |m 10 wor|d-len ?a|
|000012b0| 20 32 35 20 22 5c 6e 22 | 5d 20 34 20 28 23 24 20 | 25 "\n"|] 4 (#$ |
|000012c0| 2e 20 34 35 37 34 29 5d | 29 0a 28 64 65 66 61 6c |. 4574)]|).(defal|
|000012d0| 69 61 73 20 27 62 65 6e | 63 68 2d 6d 61 72 6b 2d |ias 'ben|ch-mark-|
|000012e0| 73 6f 72 74 2d 77 6f 72 | 64 73 20 23 5b 6e 69 6c |sort-wor|ds #[nil|
|000012f0| 20 22 c0 c1 65 64 23 87 | 22 20 5b 73 6f 72 74 2d | "..ed#.|" [sort-|
|00001300| 6c 69 6e 65 73 20 6e 69 | 6c 5d 20 34 5d 29 0a 28 |lines ni|l] 4]).(|
|00001310| 64 65 66 61 6c 69 61 73 | 20 27 62 65 6e 63 68 2d |defalias| 'bench-|
|00001320| 68 61 6e 64 6c 65 72 2d | 62 79 74 65 2d 63 6f 6d |handler-|byte-com|
|00001330| 70 69 6c 65 20 23 5b 28 | 74 69 6d 65 73 29 20 22 |pile #[(|times) "|
|00001340| 08 c1 56 ad 89 c2 20 88 | 08 53 89 10 aa 73 87 22 |..V... .|.S...s."|
|00001350| 20 5b 74 69 6d 65 73 20 | 30 20 62 65 6e 63 68 2d | [times |0 bench-|
|00001360| 6d 61 72 6b 2d 62 79 74 | 65 2d 63 6f 6d 70 69 6c |mark-byt|e-compil|
|00001370| 65 5d 20 33 5d 29 0a 23 | 40 35 37 20 48 6f 77 20 |e] 3]).#|@57 How |
|00001380| 6c 6f 6e 67 20 64 6f 65 | 73 20 69 74 20 74 61 6b |long doe|s it tak|
|00001390| 65 20 74 6f 20 62 79 74 | 65 2d 63 6f 6d 70 69 6c |e to byt|e-compil|
|000013a0| 65 20 61 20 6c 61 72 67 | 65 20 6c 69 73 70 20 66 |e a larg|e lisp f|
|000013b0| 69 6c 65 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ile..(de|falias '|
|000013c0| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 62 79 74 65 2d |bench-ma|rk-byte-|
|000013d0| 63 6f 6d 70 69 6c 65 20 | 23 5b 6e 69 6c 20 22 c0 |compile |#[nil ".|
|000013e0| 09 21 87 22 20 5b 62 79 | 74 65 2d 63 6f 6d 70 69 |.!." [by|te-compi|
|000013f0| 6c 65 2d 66 69 6c 65 20 | 62 65 6e 63 68 2d 6c 69 |le-file |bench-li|
|00001400| 73 70 2d 66 69 6c 65 5d | 20 32 20 28 23 24 20 2e |sp-file]| 2 (#$ .|
|00001410| 20 34 39 38 38 29 5d 29 | 0a 28 62 79 74 65 2d 63 | 4988)])|.(byte-c|
|00001420| 6f 64 65 20 22 c0 11 c1 | 5c 6e 42 12 c0 87 22 20 |ode "...|\nB..." |
|00001430| 5b 32 35 30 30 30 30 20 | 62 65 6e 63 68 2d 6d 61 |[250000 |bench-ma|
|00001440| 72 6b 2d 6c 6f 6f 70 2d | 63 6f 75 6e 74 20 63 75 |rk-loop-|count cu|
|00001450| 72 72 65 6e 74 2d 6c 6f | 61 64 2d 6c 69 73 74 5d |rrent-lo|ad-list]|
|00001460| 20 32 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 62 | 2).(def|alias 'b|
|00001470| 65 6e 63 68 2d 68 61 6e | 64 6c 65 72 2d 6c 6f 6f |ench-han|dler-loo|
|00001480| 70 20 23 5b 28 74 69 6d | 65 73 29 20 22 08 c1 56 |p #[(tim|es) "..V|
|00001490| ad 89 c2 20 88 08 53 89 | 10 aa 73 87 22 20 5b 74 |... ..S.|..s." [t|
|000014a0| 69 6d 65 73 20 30 20 62 | 65 6e 63 68 2d 6d 61 72 |imes 0 b|ench-mar|
|000014b0| 6b 2d 6c 6f 6f 70 5d 20 | 33 5d 29 0a 23 40 34 36 |k-loop] |3]).#@46|
|000014c0| 20 48 6f 77 20 6c 6f 6e | 67 20 64 6f 65 73 20 69 | How lon|g does i|
|000014d0| 74 20 74 61 6b 65 20 74 | 6f 20 72 75 6e 20 74 68 |t take t|o run th|
|000014e0| 72 6f 75 67 68 20 61 20 | 6c 6f 6f 70 2e 1f 0a 28 |rough a |loop...(|
|000014f0| 64 65 66 61 6c 69 61 73 | 20 27 62 65 6e 63 68 2d |defalias| 'bench-|
|00001500| 6d 61 72 6b 2d 6c 6f 6f | 70 20 23 5b 6e 69 6c 20 |mark-loo|p #[nil |
|00001510| 22 08 19 c2 89 1b 89 1c | 09 57 ab 89 c5 20 88 0c |".......|.W... ..|
|00001520| 54 89 14 aa 73 c6 c7 0b | 5c 22 2b 87 22 20 5b 62 |T...s...|\"+." [b|
|00001530| 65 6e 63 68 2d 6d 61 72 | 6b 2d 6c 6f 6f 70 2d 63 |ench-mar|k-loop-c|
|00001540| 6f 75 6e 74 20 63 6f 75 | 6e 74 20 30 20 67 63 6f |ount cou|nt 0 gco|
|00001550| 75 6e 74 20 69 20 69 6e | 63 72 65 6d 65 6e 74 20 |unt i in|crement |
|00001560| 6d 65 73 73 61 67 65 20 | 22 67 63 6f 75 6e 74 20 |message |"gcount |
|00001570| 3d 20 25 64 22 5d 20 34 | 20 28 23 24 20 2e 20 35 |= %d"] 4| (#$ . 5|
|00001580| 33 31 33 29 5d 29 0a 23 | 40 34 33 20 49 6e 63 72 |313)]).#|@43 Incr|
|00001590| 65 6d 65 6e 74 20 61 20 | 76 61 72 69 61 62 6c 65 |ement a |variable|
|000015a0| 20 66 6f 72 20 62 65 6e | 63 68 2d 6d 61 72 6b 2d | for ben|ch-mark-|
|000015b0| 6c 6f 6f 70 2e 1f 0a 28 | 64 65 66 61 6c 69 61 73 |loop...(|defalias|
|000015c0| 20 27 69 6e 63 72 65 6d | 65 6e 74 20 23 5b 6e 69 | 'increm|ent #[ni|
|000015d0| 6c 20 22 08 54 89 10 87 | 22 20 5b 67 63 6f 75 6e |l ".T...|" [gcoun|
|000015e0| 74 5d 20 32 20 28 23 24 | 20 2e 20 35 35 31 36 29 |t] 2 (#$| . 5516)|
|000015f0| 5d 29 0a 23 40 36 33 20 | 53 69 7a 65 20 6f 66 20 |]).#@63 |Size of |
|00001600| 6c 69 73 74 20 74 6f 20 | 75 73 65 20 69 6e 20 73 |list to |use in s|
|00001610| 6d 61 6c 6c 20 6c 69 73 | 74 20 63 72 65 61 74 69 |mall lis|t creati|
|00001620| 6f 6e 2f 67 61 72 62 61 | 67 65 20 63 6f 6c 6c 65 |on/garba|ge colle|
|00001630| 63 74 69 6f 6e 1f 0a 28 | 64 65 66 63 6f 6e 73 74 |ction..(|defconst|
|00001640| 20 62 65 6e 63 68 2d 6d | 61 72 6b 2d 6c 61 72 67 | bench-m|ark-larg|
|00001650| 65 2d 6c 69 73 74 2d 6c | 69 73 74 2d 73 69 7a 65 |e-list-l|ist-size|
|00001660| 20 35 30 30 30 30 30 20 | 28 23 24 20 2e 20 35 36 | 500000 |(#$ . 56|
|00001670| 32 34 29 29 0a 28 62 79 | 74 65 2d 63 6f 64 65 20 |24)).(by|te-code |
|00001680| 22 c0 11 c1 5c 6e 42 12 | c0 87 22 20 5b 31 30 20 |"...\nB.|.." [10 |
|00001690| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 6c 61 72 67 65 |bench-ma|rk-large|
|000016a0| 2d 6c 69 73 74 2d 6e 75 | 6d 2d 6c 69 73 74 73 20 |-list-nu|m-lists |
|000016b0| 63 75 72 72 65 6e 74 2d | 6c 6f 61 64 2d 6c 69 73 |current-|load-lis|
|000016c0| 74 5d 20 32 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |t] 2).(d|efalias |
|000016d0| 27 62 65 6e 63 68 2d 68 | 61 6e 64 6c 65 72 2d 6c |'bench-h|andler-l|
|000016e0| 61 72 67 65 2d 6c 69 73 | 74 20 23 5b 28 74 69 6d |arge-lis|t #[(tim|
|000016f0| 65 73 29 20 22 08 89 19 | c2 56 ad 89 c3 20 88 09 |es) "...|.V... ..|
|00001700| 53 89 11 aa 73 29 87 22 | 20 5b 62 65 6e 63 68 2d |S...s)."| [bench-|
|00001710| 6d 61 72 6b 2d 6c 61 72 | 67 65 2d 6c 69 73 74 2d |mark-lar|ge-list-|
|00001720| 6e 75 6d 2d 6c 69 73 74 | 73 20 74 6d 70 2d 66 6f |num-list|s tmp-fo|
|00001730| 6f 20 30 20 62 65 6e 63 | 68 2d 6d 61 72 6b 2d 6c |o 0 benc|h-mark-l|
|00001740| 61 72 67 65 2d 6c 69 73 | 74 5d 20 33 5d 29 0a 28 |arge-lis|t] 3]).(|
|00001750| 64 65 66 61 6c 69 61 73 | 20 27 62 65 6e 63 68 2d |defalias| 'bench-|
|00001760| 6d 61 72 6b 2d 6c 61 72 | 67 65 2d 6c 69 73 74 20 |mark-lar|ge-list |
|00001770| 23 5b 6e 69 6c 20 22 c0 | 09 c2 5c 22 87 22 20 5b |#[nil ".|..\"." [|
|00001780| 6d 61 6b 65 2d 6c 69 73 | 74 20 62 65 6e 63 68 2d |make-lis|t bench-|
|00001790| 6d 61 72 6b 2d 6c 61 72 | 67 65 2d 6c 69 73 74 2d |mark-lar|ge-list-|
|000017a0| 6c 69 73 74 2d 73 69 7a | 65 20 31 5d 20 33 5d 29 |list-siz|e 1] 3])|
|000017b0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 62 65 6e 63 |.(defali|as 'benc|
|000017c0| 68 2d 6d 61 72 6b 2d 6c | 61 72 67 65 2d 6c 69 73 |h-mark-l|arge-lis|
|000017d0| 74 2d 67 61 72 62 61 67 | 65 2d 63 6f 6c 6c 65 63 |t-garbag|e-collec|
|000017e0| 74 20 23 5b 28 74 69 6d | 65 73 29 20 22 c0 20 87 |t #[(tim|es) ". .|
|000017f0| 22 20 5b 67 61 72 62 61 | 67 65 2d 63 6f 6c 6c 65 |" [garba|ge-colle|
|00001800| 63 74 5d 20 31 5d 29 0a | 23 40 36 33 20 53 69 7a |ct] 1]).|#@63 Siz|
|00001810| 65 20 6f 66 20 6c 69 73 | 74 20 74 6f 20 75 73 65 |e of lis|t to use|
|00001820| 20 69 6e 20 73 6d 61 6c | 6c 20 6c 69 73 74 20 63 | in smal|l list c|
|00001830| 72 65 61 74 69 6f 6e 2f | 67 61 72 62 61 67 65 20 |reation/|garbage |
|00001840| 63 6f 6c 6c 65 63 74 69 | 6f 6e 1f 0a 28 64 65 66 |collecti|on..(def|
|00001850| 63 6f 6e 73 74 20 62 65 | 6e 63 68 2d 6d 61 72 6b |const be|nch-mark|
|00001860| 2d 73 6d 61 6c 6c 2d 6c | 69 73 74 2d 6c 69 73 74 |-small-l|ist-list|
|00001870| 2d 73 69 7a 65 20 31 30 | 20 28 23 24 20 2e 20 36 |-size 10| (#$ . 6|
|00001880| 31 35 37 29 29 0a 23 40 | 36 37 20 4e 75 6d 62 65 |157)).#@|67 Numbe|
|00001890| 72 20 6f 66 20 6c 69 73 | 74 73 20 74 6f 20 75 73 |r of lis|ts to us|
|000018a0| 65 20 69 6e 20 73 6d 61 | 6c 6c 20 6c 69 73 74 20 |e in sma|ll list |
|000018b0| 63 72 65 61 74 69 6f 6e | 2f 67 61 72 62 61 67 65 |creation|/garbage|
|000018c0| 20 63 6f 6c 6c 65 63 74 | 69 6f 6e 73 1f 0a 28 64 | collect|ions..(d|
|000018d0| 65 66 63 6f 6e 73 74 20 | 62 65 6e 63 68 2d 6d 61 |efconst |bench-ma|
|000018e0| 72 6b 2d 73 6d 61 6c 6c | 2d 6c 69 73 74 2d 6e 75 |rk-small|-list-nu|
|000018f0| 6d 2d 6c 69 73 74 73 20 | 31 30 30 30 30 30 20 28 |m-lists |100000 (|
|00001900| 23 24 20 2e 20 36 32 38 | 33 29 29 0a 28 64 65 66 |#$ . 628|3)).(def|
|00001910| 61 6c 69 61 73 20 27 62 | 65 6e 63 68 2d 68 61 6e |alias 'b|ench-han|
|00001920| 64 6c 65 72 2d 73 6d 61 | 6c 6c 2d 6c 69 73 74 20 |dler-sma|ll-list |
|00001930| 23 5b 28 74 69 6d 65 73 | 29 20 22 08 89 19 c2 56 |#[(times|) "....V|
|00001940| ad 89 c3 20 88 09 53 89 | 11 aa 73 29 87 22 20 5b |... ..S.|..s)." [|
|00001950| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 73 6d 61 6c 6c |bench-ma|rk-small|
|00001960| 2d 6c 69 73 74 2d 6e 75 | 6d 2d 6c 69 73 74 73 20 |-list-nu|m-lists |
|00001970| 74 6d 70 2d 66 6f 6f 20 | 30 20 62 65 6e 63 68 2d |tmp-foo |0 bench-|
|00001980| 6d 61 72 6b 2d 73 6d 61 | 6c 6c 2d 6c 69 73 74 5d |mark-sma|ll-list]|
|00001990| 20 33 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 | 3]).(de|falias '|
|000019a0| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 73 6d 61 6c 6c |bench-ma|rk-small|
|000019b0| 2d 6c 69 73 74 20 23 5b | 6e 69 6c 20 22 c0 09 c2 |-list #[|nil "...|
|000019c0| 5c 22 87 22 20 5b 6d 61 | 6b 65 2d 6c 69 73 74 20 |\"." [ma|ke-list |
|000019d0| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 73 6d 61 6c 6c |bench-ma|rk-small|
|000019e0| 2d 6c 69 73 74 2d 6c 69 | 73 74 2d 73 69 7a 65 20 |-list-li|st-size |
|000019f0| 31 5d 20 33 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |1] 3]).(|defalias|
|00001a00| 20 27 62 65 6e 63 68 2d | 6d 61 72 6b 2d 73 6d 61 | 'bench-|mark-sma|
|00001a10| 6c 6c 2d 6c 69 73 74 2d | 67 61 72 62 61 67 65 2d |ll-list-|garbage-|
|00001a20| 63 6f 6c 6c 65 63 74 20 | 23 5b 28 74 69 6d 65 73 |collect |#[(times|
|00001a30| 29 20 22 c0 20 87 22 20 | 5b 67 61 72 62 61 67 65 |) ". ." |[garbage|
|00001a40| 2d 63 6f 6c 6c 65 63 74 | 5d 20 31 5d 29 0a 28 62 |-collect|] 1]).(b|
|00001a50| 79 74 65 2d 63 6f 64 65 | 20 22 c0 11 c1 5c 6e 42 |yte-code| "...\nB|
|00001a60| 12 c0 87 22 20 5b 31 30 | 30 30 30 30 20 62 65 6e |..." [10|0000 ben|
|00001a70| 63 68 2d 6d 61 72 6b 2d | 69 6e 73 65 72 74 2d 69 |ch-mark-|insert-i|
|00001a80| 6e 74 6f 2d 65 6d 70 74 | 79 2d 62 75 66 66 65 72 |nto-empt|y-buffer|
|00001a90| 2d 6e 75 6d 2d 77 6f 72 | 64 73 20 63 75 72 72 65 |-num-wor|ds curre|
|00001aa0| 6e 74 2d 6c 6f 61 64 2d | 6c 69 73 74 5d 20 32 29 |nt-load-|list] 2)|
|00001ab0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 62 65 6e 63 |.(defali|as 'benc|
|00001ac0| 68 2d 68 61 6e 64 6c 65 | 72 2d 69 6e 73 65 72 74 |h-handle|r-insert|
|00001ad0| 2d 69 6e 74 6f 2d 65 6d | 70 74 79 2d 62 75 66 66 |-into-em|pty-buff|
|00001ae0| 65 72 20 23 5b 28 74 69 | 6d 65 73 29 20 22 c0 c1 |er #[(ti|mes) "..|
|00001af0| 21 71 88 c2 20 88 c3 20 | 88 c4 c1 21 87 22 20 5b |!q.. .. |...!." [|
|00001b00| 67 65 74 2d 62 75 66 66 | 65 72 2d 63 72 65 61 74 |get-buff|er-creat|
|00001b10| 65 20 22 2a 74 6d 70 2a | 22 20 62 65 6e 63 68 2d |e "*tmp*|" bench-|
|00001b20| 6d 61 72 6b 2d 69 6e 73 | 65 72 74 2d 69 6e 74 6f |mark-ins|ert-into|
|00001b30| 2d 65 6d 70 74 79 2d 62 | 75 66 66 65 72 20 65 72 |-empty-b|uffer er|
|00001b40| 61 73 65 2d 62 75 66 66 | 65 72 20 6b 69 6c 6c 2d |ase-buff|er kill-|
|00001b50| 62 75 66 66 65 72 5d 20 | 32 5d 29 0a 28 64 65 66 |buffer] |2]).(def|
|00001b60| 61 6c 69 61 73 20 27 62 | 65 6e 63 68 2d 6d 61 72 |alias 'b|ench-mar|
|00001b70| 6b 2d 69 6e 73 65 72 74 | 2d 69 6e 74 6f 2d 65 6d |k-insert|-into-em|
|00001b80| 70 74 79 2d 62 75 66 66 | 65 72 20 23 5b 6e 69 6c |pty-buff|er #[nil|
|00001b90| 20 22 08 89 19 c2 56 ad | 89 c3 63 88 09 53 89 11 | "....V.|..c..S..|
|00001ba0| aa 73 29 87 22 20 5b 62 | 65 6e 63 68 2d 6d 61 72 |.s)." [b|ench-mar|
|00001bb0| 6b 2d 69 6e 73 65 72 74 | 2d 69 6e 74 6f 2d 65 6d |k-insert|-into-em|
|00001bc0| 70 74 79 2d 62 75 66 66 | 65 72 2d 6e 75 6d 2d 77 |pty-buff|er-num-w|
|00001bd0| 6f 72 64 73 20 61 20 30 | 20 22 30 31 32 33 34 35 |ords a 0| "012345|
|00001be0| 36 37 38 39 5c 6e 22 5d | 20 33 5d 29 0a 23 40 32 |6789\n"]| 3]).#@2|
|00001bf0| 39 20 2a 56 65 72 73 69 | 6f 6e 20 6e 75 6d 62 65 |9 *Versi|on numbe|
|00001c00| 72 20 6f 66 20 62 65 6e | 63 68 2e 65 6c 1f 0a 28 |r of ben|ch.el..(|
|00001c10| 64 65 66 63 6f 6e 73 74 | 20 62 65 6e 63 68 2d 76 |defconst| bench-v|
|00001c20| 65 72 73 69 6f 6e 20 28 | 62 79 74 65 2d 63 6f 64 |ersion (|byte-cod|
|00001c30| 65 20 22 c0 19 c0 c2 09 | 47 c3 5a 4f 29 87 22 20 |e ".....|G.ZO)." |
|00001c40| 5b 22 24 52 65 76 69 73 | 69 6f 6e 3a 20 31 2e 32 |["$Revis|ion: 1.2|
|00001c50| 20 24 22 20 72 63 73 76 | 65 72 73 20 31 31 20 32 | $" rcsv|ers 11 2|
|00001c60| 5d 20 34 29 20 28 23 24 | 20 2e 20 2d 37 31 35 34 |] 4) (#$| . -7154|
|00001c70| 29 29 0a 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |)).(byte|-code ".|
|00001c80| c1 c2 21 ae 8b c1 c3 21 | ae 86 c1 c4 21 ae 81 c5 |..!....!|....!...|
|00001c90| 21 16 06 c6 0e 07 42 16 | 07 c0 87 22 20 5b 66 69 |!.....B.|..." [fi|
|00001ca0| 6c 65 2d 6e 61 6d 65 2d | 61 73 2d 64 69 72 65 63 |le-name-|as-direc|
|00001cb0| 74 6f 72 79 20 67 65 74 | 65 6e 76 20 22 54 4d 50 |tory get|env "TMP|
|00001cc0| 44 49 52 22 20 22 54 4d | 50 22 20 22 54 45 4d 50 |DIR" "TM|P" "TEMP|
|00001cd0| 22 20 22 2f 74 6d 70 2f | 22 20 74 65 6d 70 2d 64 |" "/tmp/|" temp-d|
|00001ce0| 69 72 20 63 75 72 72 65 | 6e 74 2d 6c 6f 61 64 2d |ir curre|nt-load-|
|00001cf0| 6c 69 73 74 5d 20 33 29 | 0a 23 40 37 32 20 4c 61 |list] 3)|.#@72 La|
|00001d00| 72 67 65 20 6c 69 73 70 | 20 66 69 6c 65 20 74 6f |rge lisp| file to|
|00001d10| 20 75 73 65 20 69 6e 20 | 62 65 6e 63 68 6d 61 72 | use in |benchmar|
|00001d20| 6b 73 20 73 68 6f 75 6c | 64 20 62 65 20 2f 74 65 |ks shoul|d be /te|
|00001d30| 6d 70 2d 64 69 72 2f 62 | 65 6e 63 68 2d 74 65 78 |mp-dir/b|ench-tex|
|00001d40| 74 2e 65 6c 1f 0a 28 64 | 65 66 63 6f 6e 73 74 20 |t.el..(d|efconst |
|00001d50| 62 65 6e 63 68 2d 6c 61 | 72 67 65 2d 6c 69 73 70 |bench-la|rge-lisp|
|00001d60| 2d 66 69 6c 65 20 28 63 | 6f 6e 63 61 74 20 74 65 |-file (c|oncat te|
|00001d70| 6d 70 2d 64 69 72 20 22 | 2e 2f 62 65 6e 63 68 2d |mp-dir "|./bench-|
|00001d80| 6c 61 72 67 65 2e 65 6c | 22 29 20 28 23 24 20 2e |large.el|") (#$ .|
|00001d90| 20 37 34 32 32 29 29 0a | 23 40 37 32 20 4c 61 72 | 7422)).|#@72 Lar|
|00001da0| 67 65 20 6c 69 73 70 20 | 66 69 6c 65 20 74 6f 20 |ge lisp |file to |
|00001db0| 75 73 65 20 69 6e 20 62 | 65 6e 63 68 6d 61 72 6b |use in b|enchmark|
|00001dc0| 73 20 73 68 6f 75 6c 64 | 20 62 65 20 2f 74 65 6d |s should| be /tem|
|00001dd0| 70 2d 64 69 72 2f 62 65 | 6e 63 68 2d 74 65 78 74 |p-dir/be|nch-text|
|00001de0| 2e 65 6c 1f 0a 28 64 65 | 66 63 6f 6e 73 74 20 62 |.el..(de|fconst b|
|00001df0| 65 6e 63 68 2d 73 6d 61 | 6c 6c 2d 6c 69 73 70 2d |ench-sma|ll-lisp-|
|00001e00| 66 69 6c 65 20 28 63 6f | 6e 63 61 74 20 74 65 6d |file (co|ncat tem|
|00001e10| 70 2d 64 69 72 20 22 2e | 2f 62 65 6e 63 68 2d 73 |p-dir ".|/bench-s|
|00001e20| 6d 61 6c 6c 2e 65 6c 22 | 29 20 28 23 24 20 2e 20 |mall.el"|) (#$ . |
|00001e30| 37 35 38 31 29 29 0a 28 | 62 79 74 65 2d 63 6f 64 |7581)).(|byte-cod|
|00001e40| 65 20 22 08 11 c1 5c 6e | 42 12 c1 87 22 20 5b 62 |e "...\n|B..." [b|
|00001e50| 65 6e 63 68 2d 6c 61 72 | 67 65 2d 6c 69 73 70 2d |ench-lar|ge-lisp-|
|00001e60| 66 69 6c 65 20 62 65 6e | 63 68 2d 6c 69 73 70 2d |file ben|ch-lisp-|
|00001e70| 66 69 6c 65 20 63 75 72 | 72 65 6e 74 2d 6c 6f 61 |file cur|rent-loa|
|00001e80| 64 2d 6c 69 73 74 5d 20 | 32 29 0a 23 40 34 38 20 |d-list] |2).#@48 |
|00001e90| 48 6f 6f 6b 20 66 6f 72 | 20 69 6e 64 69 76 69 64 |Hook for| individ|
|00001ea0| 75 61 6c 20 62 65 6e 63 | 68 20 6d 61 72 6b 20 69 |ual benc|h mark i|
|00001eb0| 6e 69 74 69 61 6c 69 7a | 61 74 69 6f 6e 2e 1f 0a |nitializ|ation...|
|00001ec0| 28 64 65 66 63 6f 6e 73 | 74 20 62 65 6e 63 68 2d |(defcons|t bench-|
|00001ed0| 70 72 65 2d 62 65 6e 63 | 68 2d 68 6f 6f 6b 20 6e |pre-benc|h-hook n|
|00001ee0| 69 6c 20 28 23 24 20 2e | 20 37 38 32 34 29 29 0a |il (#$ .| 7824)).|
|00001ef0| 23 40 35 34 20 48 6f 6f | 6b 20 66 6f 72 20 69 6e |#@54 Hoo|k for in|
|00001f00| 64 69 76 69 64 75 61 6c | 20 62 65 6e 63 68 20 6d |dividual| bench m|
|00001f10| 61 72 6b 20 73 74 61 74 | 69 73 74 69 63 20 63 6f |ark stat|istic co|
|00001f20| 6c 6c 65 63 74 69 6f 6e | 2e 1f 0a 28 64 65 66 63 |llection|...(defc|
|00001f30| 6f 6e 73 74 20 62 65 6e | 63 68 2d 70 6f 73 74 2d |onst ben|ch-post-|
|00001f40| 62 65 6e 63 68 2d 68 6f | 6f 6b 20 6e 69 6c 20 28 |bench-ho|ok nil (|
|00001f50| 23 24 20 2e 20 37 39 32 | 35 29 29 0a 28 62 79 74 |#$ . 792|5)).(byt|
|00001f60| 65 2d 63 6f 64 65 20 22 | c0 11 c1 5c 6e 42 12 c1 |e-code "|...\nB..|
|00001f70| 87 22 20 5b 28 28 62 65 | 6e 63 68 2d 68 61 6e 64 |." [((be|nch-hand|
|00001f80| 6c 65 72 2d 68 61 6e 6f | 69 20 2e 20 22 54 6f 77 |ler-hano|i . "Tow|
|00001f90| 65 72 20 6f 66 20 48 61 | 6e 6f 69 22 29 20 28 62 |er of Ha|noi") (b|
|00001fa0| 65 6e 63 68 2d 68 61 6e | 64 6c 65 72 2d 66 6f 6e |ench-han|dler-fon|
|00001fb0| 74 2d 6c 6f 63 6b 20 2e | 20 22 46 6f 6e 74 20 4c |t-lock .| "Font L|
|00001fc0| 6f 63 6b 22 29 20 28 62 | 65 6e 63 68 2d 68 61 6e |ock") (b|ench-han|
|00001fd0| 64 6c 65 72 2d 73 63 72 | 6f 6c 6c 69 6e 67 20 2e |dler-scr|olling .|
|00001fe0| 20 22 4c 61 72 67 65 20 | 46 69 6c 65 20 73 63 72 | "Large |File scr|
|00001ff0| 6f 6c 6c 69 6e 67 22 29 | 20 28 62 65 6e 63 68 2d |olling")| (bench-|
|00002000| 68 61 6e 64 6c 65 72 2d | 6d 61 6b 65 2d 66 72 61 |handler-|make-fra|
|00002010| 6d 65 73 20 2e 20 22 46 | 72 61 6d 65 20 43 72 65 |mes . "F|rame Cre|
|00002020| 61 74 69 6f 6e 22 29 20 | 28 62 65 6e 63 68 2d 68 |ation") |(bench-h|
|00002030| 61 6e 64 6c 65 72 2d 6d | 61 6b 65 2d 77 6f 72 64 |andler-m|ake-word|
|00002040| 73 20 2e 20 22 47 65 6e | 65 72 61 74 65 20 57 6f |s . "Gen|erate Wo|
|00002050| 72 64 73 22 29 20 28 62 | 65 6e 63 68 2d 68 61 6e |rds") (b|ench-han|
|00002060| 64 6c 65 72 2d 73 6f 72 | 74 2d 77 6f 72 64 73 20 |dler-sor|t-words |
|00002070| 2e 20 22 53 6f 72 74 20 | 42 75 66 66 65 72 22 29 |. "Sort |Buffer")|
|00002080| 20 28 62 65 6e 63 68 2d | 68 61 6e 64 6c 65 72 2d | (bench-|handler-|
|00002090| 62 79 74 65 2d 63 6f 6d | 70 69 6c 65 20 2e 20 22 |byte-com|pile . "|
|000020a0| 4c 61 72 67 65 20 46 69 | 6c 65 20 62 79 74 65 63 |Large Fi|le bytec|
|000020b0| 6f 6d 70 69 6c 61 74 69 | 6f 6e 22 29 20 28 62 65 |ompilati|on") (be|
|000020c0| 6e 63 68 2d 68 61 6e 64 | 6c 65 72 2d 6c 6f 6f 70 |nch-hand|ler-loop|
|000020d0| 20 2e 20 22 4c 6f 6f 70 | 20 43 6f 6d 70 75 74 61 | . "Loop| Computa|
|000020e0| 74 69 6f 6e 22 29 20 28 | 62 65 6e 63 68 2d 68 61 |tion") (|bench-ha|
|000020f0| 6e 64 6c 65 72 2d 6c 61 | 72 67 65 2d 6c 69 73 74 |ndler-la|rge-list|
|00002100| 20 2e 20 22 4d 61 6b 65 | 20 61 20 46 65 77 20 4c | . "Make| a Few L|
|00002110| 61 72 67 65 20 53 69 7a | 65 20 4c 69 73 74 22 29 |arge Siz|e List")|
|00002120| 20 28 62 65 6e 63 68 2d | 6d 61 72 6b 2d 6c 61 72 | (bench-|mark-lar|
|00002130| 67 65 2d 6c 69 73 74 2d | 67 61 72 62 61 67 65 2d |ge-list-|garbage-|
|00002140| 63 6f 6c 6c 65 63 74 20 | 2e 20 22 47 61 72 62 61 |collect |. "Garba|
|00002150| 67 65 20 43 6f 6c 6c 65 | 63 74 69 6f 6e 20 4c 61 |ge Colle|ction La|
|00002160| 72 67 65 20 53 69 7a 65 | 20 4c 69 73 74 22 29 20 |rge Size| List") |
|00002170| 28 62 65 6e 63 68 2d 68 | 61 6e 64 6c 65 72 2d 73 |(bench-h|andler-s|
|00002180| 6d 61 6c 6c 2d 6c 69 73 | 74 20 2e 20 22 4d 61 6b |mall-lis|t . "Mak|
|00002190| 65 20 53 65 76 65 72 61 | 6c 20 53 6d 61 6c 6c 20 |e Severa|l Small |
|000021a0| 53 69 7a 65 20 4c 69 73 | 74 22 29 20 28 62 65 6e |Size Lis|t") (ben|
|000021b0| 63 68 2d 6d 61 72 6b 2d | 73 6d 61 6c 6c 2d 6c 69 |ch-mark-|small-li|
|000021c0| 73 74 2d 67 61 72 62 61 | 67 65 2d 63 6f 6c 6c 65 |st-garba|ge-colle|
|000021d0| 63 74 20 2e 20 22 47 61 | 72 62 61 67 65 20 43 6f |ct . "Ga|rbage Co|
|000021e0| 6c 6c 65 63 74 69 6f 6e | 20 53 6d 61 6c 6c 20 53 |llection| Small S|
|000021f0| 69 7a 65 20 4c 69 73 74 | 22 29 20 28 62 65 6e 63 |ize List|") (benc|
|00002200| 68 2d 68 61 6e 64 6c 65 | 72 2d 69 6e 73 65 72 74 |h-handle|r-insert|
|00002210| 2d 69 6e 74 6f 2d 65 6d | 70 74 79 2d 62 75 66 66 |-into-em|pty-buff|
|00002220| 65 72 20 2e 20 22 54 65 | 78 74 20 49 6e 73 65 72 |er . "Te|xt Inser|
|00002230| 74 69 6f 6e 22 29 29 20 | 62 65 6e 63 68 2d 6d 61 |tion")) |bench-ma|
|00002240| 72 6b 2d 66 75 6e 63 74 | 69 6f 6e 2d 61 6c 69 73 |rk-funct|ion-alis|
|00002250| 74 20 63 75 72 72 65 6e | 74 2d 6c 6f 61 64 2d 6c |t curren|t-load-l|
|00002260| 69 73 74 5d 20 32 29 0a | 23 40 37 33 20 49 66 20 |ist] 2).|#@73 If |
|00002270| 6e 6f 6e 2d 6e 69 6c 20 | 61 6e 64 20 74 68 65 20 |non-nil |and the |
|00002280| 75 6e 64 65 72 6c 79 69 | 6e 67 20 65 6d 61 63 73 |underlyi|ng emacs|
|00002290| 20 73 75 70 70 6f 72 74 | 73 20 69 74 2c 20 64 6f | support|s it, do|
|000022a0| 20 66 75 6e 63 74 69 6f | 6e 20 70 72 6f 66 69 6c | functio|n profil|
|000022b0| 69 6e 67 2e 1f 0a 28 64 | 65 66 63 6f 6e 73 74 20 |ing...(d|efconst |
|000022c0| 62 65 6e 63 68 2d 65 6e | 61 62 6c 65 64 2d 70 72 |bench-en|abled-pr|
|000022d0| 6f 66 69 6c 69 6e 67 20 | 6e 69 6c 20 28 23 24 20 |ofiling |nil (#$ |
|000022e0| 2e 20 38 38 31 33 29 29 | 0a 23 40 34 37 20 42 75 |. 8813))|.#@47 Bu|
|000022f0| 66 66 65 72 20 75 73 65 | 64 20 66 6f 72 20 63 6f |ffer use|d for co|
|00002300| 6c 6c 65 63 74 69 6f 6e | 20 6f 66 20 70 72 6f 66 |llection| of prof|
|00002310| 69 6c 69 6e 67 20 64 61 | 74 61 2e 1f 0a 28 64 65 |iling da|ta...(de|
|00002320| 66 63 6f 6e 73 74 20 62 | 65 6e 63 68 2d 6d 61 72 |fconst b|ench-mar|
|00002330| 6b 2d 70 72 6f 66 69 6c | 65 2d 62 75 66 66 65 72 |k-profil|e-buffer|
|00002340| 20 22 2a 50 72 6f 66 69 | 6c 65 2a 22 20 28 23 24 | "*Profi|le*" (#$|
|00002350| 20 2e 20 38 39 34 32 29 | 29 0a 28 62 79 74 65 2d | . 8942)|).(byte-|
|00002360| 63 6f 64 65 20 22 c0 11 | c2 13 c3 0c 42 14 c5 16 |code "..|....B...|
|00002370| 06 c6 0c 42 14 c7 16 08 | c8 0c 42 14 c0 87 22 20 |...B....|..B..." |
|00002380| 5b 34 30 30 30 30 30 30 | 30 20 67 63 2d 63 6f 6e |[4000000|0 gc-con|
|00002390| 73 2d 74 68 72 65 73 68 | 6f 6c 64 20 28 28 68 65 |s-thresh|old ((he|
|000023a0| 69 67 68 74 20 2e 20 32 | 34 29 20 28 77 69 64 74 |ight . 2|4) (widt|
|000023b0| 68 20 2e 20 38 30 29 29 | 20 62 65 6e 63 68 2d 73 |h . 80))| bench-s|
|000023c0| 6d 61 6c 6c 2d 66 72 61 | 6d 65 2d 61 6c 69 73 74 |mall-fra|me-alist|
|000023d0| 20 63 75 72 72 65 6e 74 | 2d 6c 6f 61 64 2d 6c 69 | current|-load-li|
|000023e0| 73 74 20 28 28 68 65 69 | 67 68 74 20 2e 20 34 38 |st ((hei|ght . 48|
|000023f0| 29 20 28 77 69 64 74 68 | 20 2e 20 38 30 29 29 20 |) (width| . 80)) |
|00002400| 62 65 6e 63 68 2d 6d 65 | 64 69 75 6d 2d 66 72 61 |bench-me|dium-fra|
|00002410| 6d 65 2d 61 6c 69 73 74 | 20 28 28 68 65 69 67 68 |me-alist| ((heigh|
|00002420| 74 20 2e 20 37 32 29 20 | 28 77 69 64 74 68 20 2e |t . 72) |(width .|
|00002430| 20 38 30 29 29 20 62 65 | 6e 63 68 2d 6c 61 72 67 | 80)) be|nch-larg|
|00002440| 65 2d 66 72 61 6d 65 2d | 61 6c 69 73 74 5d 20 32 |e-frame-|alist] 2|
|00002450| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 62 65 6e |).(defal|ias 'ben|
|00002460| 63 68 2d 67 65 74 2d 74 | 69 6d 65 20 23 5b 6e 69 |ch-get-t|ime #[ni|
|00002470| 6c 20 22 c0 20 19 c2 09 | 41 40 21 c2 c3 09 38 21 |l ". ...|A@!...8!|
|00002480| c4 a5 5c 5c 29 87 22 20 | 5b 63 75 72 72 65 6e 74 |..\\)." |[current|
|00002490| 2d 74 69 6d 65 20 6e 6f | 77 20 66 6c 6f 61 74 20 |-time no|w float |
|000024a0| 32 20 31 30 30 30 30 30 | 30 2e 30 5d 20 34 5d 29 |2 100000|0.0] 4])|
|000024b0| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 c1 4e |.(byte-c|ode "..N|
|000024c0| c2 73 ac 85 c3 c4 c0 5c | 22 88 c5 c0 c1 c6 23 87 |.s.....\|".....#.|
|000024d0| 22 20 5b 62 65 6e 63 68 | 2d 67 65 74 2d 74 69 6d |" [bench|-get-tim|
|000024e0| 65 20 62 79 74 65 2d 6f | 70 74 69 6d 69 7a 65 72 |e byte-o|ptimizer|
|000024f0| 20 28 6e 69 6c 20 62 79 | 74 65 2d 63 6f 6d 70 69 | (nil by|te-compi|
|00002500| 6c 65 2d 69 6e 6c 69 6e | 65 2d 65 78 70 61 6e 64 |le-inlin|e-expand|
|00002510| 29 20 65 72 72 6f 72 20 | 22 25 73 20 61 6c 72 65 |) error |"%s alre|
|00002520| 61 64 79 20 68 61 73 20 | 61 20 62 79 74 65 2d 6f |ady has |a byte-o|
|00002530| 70 74 69 6d 69 7a 65 72 | 2c 20 63 61 6e 27 74 20 |ptimizer|, can't |
|00002540| 6d 61 6b 65 20 69 74 20 | 69 6e 6c 69 6e 65 22 20 |make it |inline" |
|00002550| 70 75 74 20 62 79 74 65 | 2d 63 6f 6d 70 69 6c 65 |put byte|-compile|
|00002560| 2d 69 6e 6c 69 6e 65 2d | 65 78 70 61 6e 64 5d 20 |-inline-|expand] |
|00002570| 34 29 0a 23 40 34 39 20 | 49 6e 69 74 69 61 6c 69 |4).#@49 |Initiali|
|00002580| 7a 65 20 70 72 6f 66 69 | 6c 69 6e 67 20 66 6f 72 |ze profi|ling for|
|00002590| 20 62 65 6e 63 68 20 6d | 61 72 6b 69 6e 67 20 70 | bench m|arking p|
|000025a0| 61 63 6b 61 67 65 2e 1f | 0a 28 64 65 66 61 6c 69 |ackage..|.(defali|
|000025b0| 61 73 20 27 62 65 6e 63 | 68 2d 69 6e 69 74 20 23 |as 'benc|h-init #|
|000025c0| 5b 6e 69 6c 20 22 c0 c1 | 21 ab 93 c2 0b 21 1c c5 |[nil "..|!....!..|
|000025d0| 0c 21 88 c6 20 ad 85 c7 | 20 88 c8 20 29 87 c9 ca |.!.. ...| .. )...|
|000025e0| 21 88 cb cc 21 87 22 20 | 5b 66 62 6f 75 6e 64 70 |!...!." |[fboundp|
|000025f0| 20 73 74 61 72 74 2d 70 | 72 6f 66 69 6c 69 6e 67 | start-p|rofiling|
|00002600| 20 67 65 74 2d 62 75 66 | 66 65 72 2d 63 72 65 61 | get-buf|fer-crea|
|00002610| 74 65 20 62 65 6e 63 68 | 2d 6d 61 72 6b 2d 70 72 |te bench|-mark-pr|
|00002620| 6f 66 69 6c 65 2d 62 75 | 66 66 65 72 20 62 75 66 |ofile-bu|ffer buf|
|00002630| 20 65 72 61 73 65 2d 62 | 75 66 66 65 72 20 70 72 | erase-b|uffer pr|
|00002640| 6f 66 69 6c 69 6e 67 2d | 61 63 74 69 76 65 2d 70 |ofiling-|active-p|
|00002650| 20 73 74 6f 70 2d 70 72 | 6f 66 69 6c 69 6e 67 20 | stop-pr|ofiling |
|00002660| 63 6c 65 61 72 2d 70 72 | 6f 66 69 6c 69 6e 67 2d |clear-pr|ofiling-|
|00002670| 69 6e 66 6f 20 6d 65 73 | 73 61 67 65 20 22 50 72 |info mes|sage "Pr|
|00002680| 6f 66 69 6c 69 6e 67 20 | 6e 6f 74 20 61 76 61 69 |ofiling |not avai|
|00002690| 6c 61 62 6c 65 20 69 6e | 20 74 68 69 73 20 58 45 |lable in| this XE|
|000026a0| 6d 61 63 73 2e 22 20 73 | 69 74 2d 66 6f 72 20 32 |macs." s|it-for 2|
|000026b0| 5d 20 32 20 28 23 24 20 | 2e 20 39 35 39 32 29 5d |] 2 (#$ |. 9592)]|
|000026c0| 29 0a 23 40 34 39 20 49 | 6e 69 74 69 61 6c 69 7a |).#@49 I|nitializ|
|000026d0| 65 20 70 72 6f 66 69 6c | 69 6e 67 20 66 6f 72 20 |e profil|ing for |
|000026e0| 62 65 6e 63 68 20 6d 61 | 72 6b 69 6e 67 20 70 61 |bench ma|rking pa|
|000026f0| 63 6b 61 67 65 2e 1f 0a | 28 64 65 66 61 6c 69 61 |ckage...|(defalia|
|00002700| 73 20 27 62 65 6e 63 68 | 2d 74 65 73 74 2d 69 6e |s 'bench|-test-in|
|00002710| 69 74 20 23 5b 6e 69 6c | 20 22 c0 c1 21 ab 95 c2 |it #[nil| "..!...|
|00002720| 0b 21 1c c5 0c 21 88 c6 | 20 ab 86 c7 20 88 c8 20 |.!...!..| ... .. |
|00002730| 88 29 aa 88 c9 ca 21 88 | cb cc 21 88 0e 0d 16 0e |.)....!.|..!.....|
|00002740| cf 16 10 cf 16 11 d2 16 | 13 d4 16 15 cf 16 16 cf |........|........|
|00002750| 89 16 17 87 22 20 5b 66 | 62 6f 75 6e 64 70 20 73 |...." [f|boundp s|
|00002760| 74 61 72 74 2d 70 72 6f | 66 69 6c 69 6e 67 20 67 |tart-pro|filing g|
|00002770| 65 74 2d 62 75 66 66 65 | 72 2d 63 72 65 61 74 65 |et-buffe|r-create|
|00002780| 20 62 65 6e 63 68 2d 6d | 61 72 6b 2d 70 72 6f 66 | bench-m|ark-prof|
|00002790| 69 6c 65 2d 62 75 66 66 | 65 72 20 62 75 66 20 65 |ile-buff|er buf e|
|000027a0| 72 61 73 65 2d 62 75 66 | 66 65 72 20 70 72 6f 66 |rase-buf|fer prof|
|000027b0| 69 6c 69 6e 67 2d 61 63 | 74 69 76 65 2d 70 20 73 |iling-ac|tive-p s|
|000027c0| 74 6f 70 2d 70 72 6f 66 | 69 6c 69 6e 67 20 63 6c |top-prof|iling cl|
|000027d0| 65 61 72 2d 70 72 6f 66 | 69 6c 69 6e 67 2d 69 6e |ear-prof|iling-in|
|000027e0| 66 6f 20 6d 65 73 73 61 | 67 65 20 22 50 72 6f 66 |fo messa|ge "Prof|
|000027f0| 69 6c 69 6e 67 20 6e 6f | 74 20 61 76 61 69 6c 61 |iling no|t availa|
|00002800| 62 6c 65 20 69 6e 20 74 | 68 69 73 20 58 45 6d 61 |ble in t|his XEma|
|00002810| 63 73 2e 22 20 73 69 74 | 2d 66 6f 72 20 32 20 62 |cs." sit|-for 2 b|
|00002820| 65 6e 63 68 2d 73 6d 61 | 6c 6c 2d 6c 69 73 70 2d |ench-sma|ll-lisp-|
|00002830| 66 69 6c 65 20 62 65 6e | 63 68 2d 6c 69 73 70 2d |file ben|ch-lisp-|
|00002840| 66 69 6c 65 20 31 30 30 | 20 62 65 6e 63 68 2d 6d |file 100| bench-m|
|00002850| 61 72 6b 2d 6d 61 6b 65 | 2d 77 6f 72 64 73 2d 6e |ark-make|-words-n|
|00002860| 75 6d 62 65 72 2d 6f 66 | 2d 77 6f 72 64 73 20 62 |umber-of|-words b|
|00002870| 65 6e 63 68 2d 6d 61 72 | 6b 2d 73 6f 72 74 2d 77 |ench-mar|k-sort-w|
|00002880| 6f 72 64 73 2d 6e 75 6d | 62 65 72 2d 6f 66 2d 77 |ords-num|ber-of-w|
|00002890| 6f 72 64 73 20 31 30 30 | 30 30 20 62 65 6e 63 68 |ords 100|00 bench|
|000028a0| 2d 6d 61 72 6b 2d 6c 6f | 6f 70 2d 63 6f 75 6e 74 |-mark-lo|op-count|
|000028b0| 20 35 30 30 20 62 65 6e | 63 68 2d 6d 61 72 6b 2d | 500 ben|ch-mark-|
|000028c0| 6c 61 72 67 65 2d 6c 69 | 73 74 2d 6c 69 73 74 2d |large-li|st-list-|
|000028d0| 73 69 7a 65 20 62 65 6e | 63 68 2d 6d 61 72 6b 2d |size ben|ch-mark-|
|000028e0| 73 6d 61 6c 6c 2d 6c 69 | 73 74 2d 6e 75 6d 2d 6c |small-li|st-num-l|
|000028f0| 69 73 74 73 20 62 65 6e | 63 68 2d 6d 61 72 6b 2d |ists ben|ch-mark-|
|00002900| 69 6e 73 65 72 74 2d 69 | 6e 74 6f 2d 65 6d 70 74 |insert-i|nto-empt|
|00002910| 79 2d 62 75 66 66 65 72 | 2d 6e 75 6d 2d 77 6f 72 |y-buffer|-num-wor|
|00002920| 64 73 5d 20 32 20 28 23 | 24 20 2e 20 39 39 32 37 |ds] 2 (#|$ . 9927|
|00002930| 29 5d 29 0a 23 40 34 31 | 20 54 75 72 6e 20 6f 6e |)]).#@41| Turn on|
|00002940| 20 70 72 6f 66 69 6c 69 | 6e 67 20 66 6f 72 20 74 | profili|ng for t|
|00002950| 65 73 74 20 60 74 65 73 | 74 2d 6e 61 6d 65 27 2e |est `tes|t-name'.|
|00002960| 1f 0a 28 64 65 66 61 6c | 69 61 73 20 27 62 65 6e |..(defal|ias 'ben|
|00002970| 63 68 2d 70 72 6f 66 69 | 6c 65 2d 73 74 61 72 74 |ch-profi|le-start|
|00002980| 20 23 5b 28 74 65 73 74 | 2d 6e 61 6d 65 29 20 22 | #[(test|-name) "|
|00002990| 08 ad a1 c1 c2 21 ad 9c | c3 20 ab 83 c4 20 88 c5 |.....!..|. ... ..|
|000029a0| 0e 06 21 1e 07 8a 0e 07 | 71 88 c8 0e 09 ca b1 03 |..!.....|q.......|
|000029b0| 88 c2 20 2a 87 22 20 5b | 62 65 6e 63 68 2d 65 6e |.. *." [|bench-en|
|000029c0| 61 62 6c 65 64 2d 70 72 | 6f 66 69 6c 69 6e 67 20 |abled-pr|ofiling |
|000029d0| 66 62 6f 75 6e 64 70 20 | 73 74 61 72 74 2d 70 72 |fboundp |start-pr|
|000029e0| 6f 66 69 6c 69 6e 67 20 | 70 72 6f 66 69 6c 69 6e |ofiling |profilin|
|000029f0| 67 2d 61 63 74 69 76 65 | 2d 70 20 73 74 6f 70 2d |g-active|-p stop-|
|00002a00| 70 72 6f 66 69 6c 69 6e | 67 20 67 65 74 2d 62 75 |profilin|g get-bu|
|00002a10| 66 66 65 72 2d 63 72 65 | 61 74 65 20 62 65 6e 63 |ffer-cre|ate benc|
|00002a20| 68 2d 6d 61 72 6b 2d 70 | 72 6f 66 69 6c 65 2d 62 |h-mark-p|rofile-b|
|00002a30| 75 66 66 65 72 20 62 75 | 66 20 22 54 65 73 74 20 |uffer bu|f "Test |
|00002a40| 60 22 20 74 65 73 74 2d | 6e 61 6d 65 20 22 27 5c |`" test-|name "'\|
|00002a50| 6e 22 5d 20 33 20 28 23 | 24 20 2e 20 31 30 35 35 |n"] 3 (#|$ . 1055|
|00002a60| 33 29 5d 29 0a 23 40 34 | 32 20 54 75 72 6e 20 6f |3)]).#@4|2 Turn o|
|00002a70| 66 66 20 70 72 6f 66 69 | 6c 69 6e 67 20 66 6f 72 |ff profi|ling for|
|00002a80| 20 74 65 73 74 20 60 74 | 65 73 74 2d 6e 61 6d 65 | test `t|est-name|
|00002a90| 27 2e 1f 0a 28 64 65 66 | 61 6c 69 61 73 20 27 62 |'...(def|alias 'b|
|00002aa0| 65 6e 63 68 2d 70 72 6f | 66 69 6c 65 2d 73 74 6f |ench-pro|file-sto|
|00002ab0| 70 20 23 5b 28 74 65 73 | 74 2d 6e 61 6d 65 29 20 |p #[(tes|t-name) |
|00002ac0| 22 08 ad b4 c1 c2 21 ad | af c2 20 88 c3 0c 21 1d |".....!.|.. ...!.|
|00002ad0| 8a 0d 71 88 72 c3 c6 21 | 71 88 c7 16 08 c9 70 21 |..q.r..!|q.....p!|
|00002ae0| 88 ca 20 88 70 1e 0b cc | 20 88 29 cd 20 ca 20 88 |.. .p...| .). . .|
|00002af0| 29 ce b1 02 88 2a cf 20 | 87 22 20 5b 62 65 6e 63 |)....*. |." [benc|
|00002b00| 68 2d 65 6e 61 62 6c 65 | 64 2d 70 72 6f 66 69 6c |h-enable|d-profil|
|00002b10| 69 6e 67 20 66 62 6f 75 | 6e 64 70 20 73 74 6f 70 |ing fbou|ndp stop|
|00002b20| 2d 70 72 6f 66 69 6c 69 | 6e 67 20 67 65 74 2d 62 |-profili|ng get-b|
|00002b30| 75 66 66 65 72 2d 63 72 | 65 61 74 65 20 62 65 6e |uffer-cr|eate ben|
|00002b40| 63 68 2d 6d 61 72 6b 2d | 70 72 6f 66 69 6c 65 2d |ch-mark-|profile-|
|00002b50| 62 75 66 66 65 72 20 62 | 75 66 20 22 20 2a 73 74 |buffer b|uf " *st|
|00002b60| 72 69 6e 67 2d 6f 75 74 | 70 75 74 2a 22 20 6e 69 |ring-out|put*" ni|
|00002b70| 6c 20 62 75 66 66 65 72 | 2d 72 65 61 64 2d 6f 6e |l buffer|-read-on|
|00002b80| 6c 79 20 62 75 66 66 65 | 72 2d 64 69 73 61 62 6c |ly buffe|r-disabl|
|00002b90| 65 2d 75 6e 64 6f 20 65 | 72 61 73 65 2d 62 75 66 |e-undo e|rase-buf|
|00002ba0| 66 65 72 20 73 74 61 6e | 64 61 72 64 2d 6f 75 74 |fer stan|dard-out|
|00002bb0| 70 75 74 20 70 72 65 74 | 74 79 2d 70 72 69 6e 74 |put pret|ty-print|
|00002bc0| 2d 70 72 6f 66 69 6c 69 | 6e 67 2d 69 6e 66 6f 20 |-profili|ng-info |
|00002bd0| 62 75 66 66 65 72 2d 73 | 74 72 69 6e 67 20 22 5c |buffer-s|tring "\|
|00002be0| 6e 22 20 63 6c 65 61 72 | 2d 70 72 6f 66 69 6c 69 |n" clear|-profili|
|00002bf0| 6e 67 2d 69 6e 66 6f 5d | 20 32 20 28 23 24 20 2e |ng-info]| 2 (#$ .|
|00002c00| 20 31 30 38 35 38 29 5d | 29 0a 28 62 79 74 65 2d | 10858)]|).(byte-|
|00002c10| 63 6f 64 65 20 22 c0 c1 | c2 5c 22 88 c0 c3 c4 5c |code "..|.\"....\|
|00002c20| 22 87 22 20 5b 61 64 64 | 2d 68 6f 6f 6b 20 62 65 |"." [add|-hook be|
|00002c30| 6e 63 68 2d 70 72 65 2d | 62 65 6e 63 68 2d 68 6f |nch-pre-|bench-ho|
|00002c40| 6f 6b 20 62 65 6e 63 68 | 2d 70 72 6f 66 69 6c 65 |ok bench|-profile|
|00002c50| 2d 73 74 61 72 74 20 62 | 65 6e 63 68 2d 70 6f 73 |-start b|ench-pos|
|00002c60| 74 2d 62 65 6e 63 68 2d | 68 6f 6f 6b 20 62 65 6e |t-bench-|hook ben|
|00002c70| 63 68 2d 70 72 6f 66 69 | 6c 65 2d 73 74 6f 70 5d |ch-profi|le-stop]|
|00002c80| 20 33 29 0a 23 40 33 32 | 20 50 6f 73 74 20 70 72 | 3).#@32| Post pr|
|00002c90| 6f 63 65 73 73 69 6e 67 | 20 6f 66 20 65 6c 70 20 |ocessing| of elp |
|00002ca0| 72 65 73 75 6c 74 73 1f | 0a 28 64 65 66 61 6c 69 |results.|.(defali|
|00002cb0| 61 73 20 27 62 65 6e 63 | 68 2d 70 6f 73 74 20 23 |as 'benc|h-post #|
|00002cc0| 5b 6e 69 6c 20 22 65 62 | 88 c0 c1 21 88 c2 c3 60 |[nil "eb|...!...`|
|00002cd0| 64 23 88 c4 70 21 87 22 | 20 5b 6e 65 78 74 2d 6c |d#..p!."| [next-l|
|00002ce0| 69 6e 65 20 32 20 73 6f | 72 74 2d 6c 69 6e 65 73 |ine 2 so|rt-lines|
|00002cf0| 20 6e 69 6c 20 6d 61 69 | 6c 2d 72 65 73 75 6c 74 | nil mai|l-result|
|00002d00| 73 5d 20 34 20 28 23 24 | 20 2e 20 31 31 34 30 31 |s] 4 (#$| . 11401|
|00002d10| 29 5d 29 0a 23 40 32 39 | 20 52 75 6e 20 61 20 73 |)]).#@29| Run a s|
|00002d20| 65 72 69 65 73 20 6f 66 | 20 62 65 6e 63 68 6d 61 |eries of| benchma|
|00002d30| 72 6b 73 2e 1f 0a 28 64 | 65 66 61 6c 69 61 73 20 |rks...(d|efalias |
|00002d40| 27 62 65 6e 63 68 20 23 | 5b 28 61 72 67 29 20 22 |'bench #|[(arg) "|
|00002d50| c0 c1 21 88 c2 20 88 c3 | c4 21 ab 82 c5 14 c3 c6 |..!.. ..|.!......|
|00002d60| 21 ab 84 c6 c7 21 88 0e | 08 1e 09 0e 09 ab ae 0e |!....!..|........|
|00002d70| 09 40 41 1e 5c 6e cb cc | 0e 5c 6e 5c 22 88 cd ce |.@A.\n..|.\n\"...|
|00002d80| cf 0e 09 40 40 21 0e 5c | 6e 23 88 0e 09 40 40 0e |...@@!.\|n#...@@.|
|00002d90| 10 21 88 0e 09 41 16 09 | cb d1 0e 5c 6e 5c 22 88 |.!...A..|...\n\".|
|00002da0| 29 aa 4e 29 d2 20 88 d3 | 20 87 22 20 5b 65 6c 70 |).N). ..| ." [elp|
|00002db0| 2d 69 6e 73 74 72 75 6d | 65 6e 74 2d 70 61 63 6b |-instrum|ent-pack|
|00002dc0| 61 67 65 20 22 62 65 6e | 63 68 2d 6d 61 72 6b 22 |age "ben|ch-mark"|
|00002dd0| 20 62 65 6e 63 68 2d 69 | 6e 69 74 20 66 62 6f 75 | bench-i|nit fbou|
|00002de0| 6e 64 70 20 62 79 74 65 | 2d 6f 70 74 69 6d 69 7a |ndp byte|-optimiz|
|00002df0| 65 20 6e 69 6c 20 6d 65 | 6e 75 2d 62 61 72 2d 6d |e nil me|nu-bar-m|
|00002e00| 6f 64 65 20 2d 31 20 62 | 65 6e 63 68 2d 6d 61 72 |ode -1 b|ench-mar|
|00002e10| 6b 2d 66 75 6e 63 74 69 | 6f 6e 2d 61 6c 69 73 74 |k-functi|on-alist|
|00002e20| 20 62 65 6e 63 68 65 73 | 20 74 65 73 74 2d 6e 61 | benches| test-na|
|00002e30| 6d 65 20 72 75 6e 2d 68 | 6f 6f 6b 2d 77 69 74 68 |me run-h|ook-with|
|00002e40| 2d 61 72 67 73 20 62 65 | 6e 63 68 2d 70 72 65 2d |-args be|nch-pre-|
|00002e50| 62 65 6e 63 68 2d 68 6f | 6f 6b 20 6d 65 73 73 61 |bench-ho|ok messa|
|00002e60| 67 65 20 22 52 75 6e 6e | 69 6e 67 20 25 73 20 2d |ge "Runn|ing %s -|
|00002e70| 20 25 73 2e 22 20 73 79 | 6d 62 6f 6c 2d 6e 61 6d | %s." sy|mbol-nam|
|00002e80| 65 20 61 72 67 20 62 65 | 6e 63 68 2d 70 6f 73 74 |e arg be|nch-post|
|00002e90| 2d 62 65 6e 63 68 2d 68 | 6f 6f 6b 20 65 6c 70 2d |-bench-h|ook elp-|
|00002ea0| 72 65 73 75 6c 74 73 20 | 62 65 6e 63 68 2d 70 6f |results |bench-po|
|00002eb0| 73 74 5d 20 34 20 28 23 | 24 20 2e 20 31 31 35 34 |st] 4 (#|$ . 1154|
|00002ec0| 35 29 20 22 70 22 5d 29 | 0a 23 40 31 33 34 20 52 |5) "p"])|.#@134 R|
|00002ed0| 75 6e 20 61 6c 6c 20 74 | 68 65 20 74 65 73 74 73 |un all t|he tests|
|00002ee0| 20 62 75 74 20 77 69 74 | 68 20 73 6d 61 6c 6c 65 | but wit|h smalle|
|00002ef0| 72 20 76 61 6c 75 65 73 | 20 73 6f 20 74 68 65 20 |r values| so the |
|00002f00| 74 65 73 74 73 20 72 75 | 6e 20 71 75 69 63 6b 65 |tests ru|n quicke|
|00002f10| 72 2e 0a 54 68 69 73 20 | 77 61 79 20 49 20 64 6f |r..This |way I do|
|00002f20| 6e 27 74 20 68 61 76 65 | 20 74 6f 20 73 69 74 20 |n't have| to sit |
|00002f30| 61 72 6f 75 6e 64 20 74 | 6f 20 73 65 65 20 69 66 |around t|o see if|
|00002f40| 20 74 68 65 20 74 65 73 | 74 73 20 63 6f 6d 70 6c | the tes|ts compl|
|00002f50| 65 74 65 1f 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |ete..(de|falias '|
|00002f60| 62 65 6e 63 68 2d 74 65 | 73 74 20 23 5b 28 61 72 |bench-te|st #[(ar|
|00002f70| 67 29 20 22 c0 c1 21 88 | c2 20 88 c3 c4 21 ab 82 |g) "..!.|. ...!..|
|00002f80| c5 14 c3 c6 21 ab 84 c6 | c7 21 88 0e 08 1e 09 0e |....!...|.!......|
|00002f90| 09 ab ae 0e 09 40 41 1e | 5c 6e cb cc 0e 5c 6e 5c |.....@A.|\n...\n\|
|00002fa0| 22 88 cd ce cf 0e 09 40 | 40 21 0e 5c 6e 23 88 0e |"......@|@!.\n#..|
|00002fb0| 09 40 40 0e 10 21 88 0e | 09 41 16 09 cb d1 0e 5c |.@@..!..|.A.....\|
|00002fc0| 6e 5c 22 88 29 aa 4e 29 | d2 20 88 d3 20 87 22 20 |n\".).N)|. .. ." |
|00002fd0| 5b 65 6c 70 2d 69 6e 73 | 74 72 75 6d 65 6e 74 2d |[elp-ins|trument-|
|00002fe0| 70 61 63 6b 61 67 65 20 | 22 62 65 6e 63 68 2d 6d |package |"bench-m|
|00002ff0| 61 72 6b 22 20 62 65 6e | 63 68 2d 74 65 73 74 2d |ark" ben|ch-test-|
|00003000| 69 6e 69 74 20 66 62 6f | 75 6e 64 70 20 62 79 74 |init fbo|undp byt|
|00003010| 65 2d 6f 70 74 69 6d 69 | 7a 65 20 6e 69 6c 20 6d |e-optimi|ze nil m|
|00003020| 65 6e 75 2d 62 61 72 2d | 6d 6f 64 65 20 2d 31 20 |enu-bar-|mode -1 |
|00003030| 62 65 6e 63 68 2d 6d 61 | 72 6b 2d 66 75 6e 63 74 |bench-ma|rk-funct|
|00003040| 69 6f 6e 2d 61 6c 69 73 | 74 20 62 65 6e 63 68 65 |ion-alis|t benche|
|00003050| 73 20 74 65 73 74 2d 6e | 61 6d 65 20 72 75 6e 2d |s test-n|ame run-|
|00003060| 68 6f 6f 6b 2d 77 69 74 | 68 2d 61 72 67 73 20 62 |hook-wit|h-args b|
|00003070| 65 6e 63 68 2d 70 72 65 | 2d 62 65 6e 63 68 2d 68 |ench-pre|-bench-h|
|00003080| 6f 6f 6b 20 6d 65 73 73 | 61 67 65 20 22 52 75 6e |ook mess|age "Run|
|00003090| 6e 69 6e 67 20 25 73 20 | 2d 20 25 73 2e 22 20 73 |ning %s |- %s." s|
|000030a0| 79 6d 62 6f 6c 2d 6e 61 | 6d 65 20 61 72 67 20 62 |ymbol-na|me arg b|
|000030b0| 65 6e 63 68 2d 70 6f 73 | 74 2d 62 65 6e 63 68 2d |ench-pos|t-bench-|
|000030c0| 68 6f 6f 6b 20 65 6c 70 | 2d 72 65 73 75 6c 74 73 |hook elp|-results|
|000030d0| 20 62 65 6e 63 68 2d 70 | 6f 73 74 5d 20 34 20 28 | bench-p|ost] 4 (|
|000030e0| 23 24 20 2e 20 31 31 39 | 38 33 29 20 22 70 22 5d |#$ . 119|83) "p"]|
|000030f0| 29 0a 28 62 79 74 65 2d | 63 6f 64 65 20 22 c0 11 |).(byte-|code "..|
|00003100| c1 5c 6e 42 12 c3 14 c4 | 5c 6e 42 12 c5 c6 0e 07 |.\nB....|\nB.....|
|00003110| c7 20 0e 08 24 16 09 c9 | 5c 6e 42 12 c1 87 22 20 |. ..$...|\nB..." |
|00003120| 5b 22 68 6f 6c 64 65 72 | 40 72 73 6e 2e 68 70 2e |["holder|@rsn.hp.|
|00003130| 63 6f 6d 22 20 62 65 6e | 63 68 2d 73 65 6e 64 2d |com" ben|ch-send-|
|00003140| 72 65 73 75 6c 74 73 2d | 74 6f 20 63 75 72 72 65 |results-|to curre|
|00003150| 6e 74 2d 6c 6f 61 64 2d | 6c 69 73 74 20 22 42 65 |nt-load-|list "Be|
|00003160| 6e 63 68 20 4d 61 72 6b | 20 52 65 73 75 6c 74 73 |nch Mark| Results|
|00003170| 22 20 62 65 6e 63 68 2d | 73 75 62 6a 65 63 74 20 |" bench-|subject |
|00003180| 66 6f 72 6d 61 74 20 22 | 5c 6e 5c 6e 50 6c 65 61 |format "|\n\nPlea|
|00003190| 73 65 20 66 69 6c 6c 20 | 69 6e 20 61 73 20 6d 75 |se fill |in as mu|
|000031a0| 63 68 20 6f 66 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |ch of th|e follow|
|000031b0| 69 6e 67 20 61 73 20 79 | 6f 75 20 63 61 6e 5c 6e |ing as y|ou can\n|
|000031c0| 61 6e 64 20 74 68 65 6e | 20 68 69 74 20 43 2d 63 |and then| hit C-c|
|000031d0| 43 2d 63 20 74 6f 20 73 | 65 6e 64 2e 5c 6e 5c 6e |C-c to s|end.\n\n|
|000031e0| 43 50 55 20 4d 61 6e 75 | 66 61 63 74 75 72 65 72 |CPU Manu|facturer|
|000031f0| 20 28 49 6e 74 65 6c 2c | 48 50 2c 44 45 43 2c 65 | (Intel,|HP,DEC,e|
|00003200| 74 63 2e 29 3a 20 5c 6e | 43 50 55 20 54 79 70 65 |tc.): \n|CPU Type|
|00003210| 20 28 50 65 6e 74 69 75 | 6d 2c 41 6c 70 68 61 29 | (Pentiu|m,Alpha)|
|00003220| 3a 20 5c 6e 43 50 55 20 | 53 70 65 65 64 3a 20 5c |: \nCPU |Speed: \|
|00003230| 6e 52 41 4d 20 28 69 6e | 20 6d 65 67 29 3a 20 5c |nRAM (in| meg): \|
|00003240| 6e 45 6d 61 63 73 20 56 | 65 72 73 69 6f 6e 3a 20 |nEmacs V|ersion: |
|00003250| 25 73 5c 6e 45 6d 61 63 | 73 20 28 76 65 72 73 69 |%s\nEmac|s (versi|
|00003260| 6f 6e 29 3a 20 25 73 5c | 6e 43 6f 6d 70 69 6c 65 |on): %s\|nCompile|
|00003270| 20 6c 69 6e 65 3a 5c 6e | 42 65 6e 63 68 20 56 65 | line:\n|Bench Ve|
|00003280| 72 73 69 6f 6e 3a 20 25 | 73 5c 6e 22 20 65 6d 61 |rsion: %|s\n" ema|
|00003290| 63 73 2d 76 65 72 73 69 | 6f 6e 20 62 65 6e 63 68 |cs-versi|on bench|
|000032a0| 2d 76 65 72 73 69 6f 6e | 20 62 65 6e 63 68 2d 73 |-version| bench-s|
|000032b0| 79 73 74 65 6d 2d 66 6f | 72 6d 5d 20 35 29 0a 28 |ystem-fo|rm] 5).(|
|000032c0| 64 65 66 61 6c 69 61 73 | 20 27 6d 61 69 6c 2d 72 |defalias| 'mail-r|
|000032d0| 65 73 75 6c 74 73 20 23 | 5b 28 62 75 66 66 65 72 |esults #|[(buffer|
|000032e0| 29 20 22 c0 c1 5c 6e 0b | 23 88 c4 c5 21 88 64 62 |) "..\n.|#...!.db|
|000032f0| 88 0e 06 63 88 c7 0e 08 | 21 87 22 20 5b 6d 61 69 |...c....|!." [mai|
|00003300| 6c 20 6e 69 6c 20 62 65 | 6e 63 68 2d 73 65 6e 64 |l nil be|nch-send|
|00003310| 2d 72 65 73 75 6c 74 73 | 2d 74 6f 20 62 65 6e 63 |-results|-to benc|
|00003320| 68 2d 73 75 62 6a 65 63 | 74 20 73 69 74 2d 66 6f |h-subjec|t sit-fo|
|00003330| 72 20 30 20 62 65 6e 63 | 68 2d 73 79 73 74 65 6d |r 0 benc|h-system|
|00003340| 2d 66 6f 72 6d 20 69 6e | 73 65 72 74 2d 62 75 66 |-form in|sert-buf|
|00003350| 66 65 72 20 62 75 66 66 | 65 72 5d 20 34 5d 29 0a |fer buff|er] 4]).|
+--------+-------------------------+-------------------------+--------+--------+